all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Wolfgang Jenkner <wjenkner@inode.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, zwz <zhangweize@gmail.com>
Subject: Re: Is it possible to have 256 colors in Emacs on framebuffer-enabled	tty
Date: Wed, 31 Aug 2011 18:23:27 +0200	[thread overview]
Message-ID: <858vq9zh1c.fsf@iznogoud.viz> (raw)
In-Reply-To: 83zkiqeq7i.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: zwz <zhangweize@gmail.com>
>> Date: Tue, 30 Aug 2011 22:05:50 +0800
>> 
>> Do you mean if there is a lisp/term/fbterm.el that deals with the
>> escapes, then it is possible to have 256 colors in Emacs on fbterm?
>
> No, such an fbterm.el does not exist.  But given enough information
> about this terminal, it could be written in a way that's similar to
> xterm.el.

I think the 256 colors support in term/xterm.el is general enough to
support fbterm as well.  At least the following quick'n'dirty adaption
from term/linux.el seems to work for that (provided the terminfo stuff
is correctly installed, TERM is set to fbterm and the code below is
saved to term/fbterm.el somewhere in load-path).

#+BEGIN_SRC emacs-lisp
;; -*- no-byte-compile: t -*-

(load "term/xterm")

(defun terminal-init-fbterm ()
  "Terminal initialization function for linux fbterm."
  (unless (terminal-coding-system)
    (set-terminal-coding-system 'utf-8-unix))

  ;; It can't really display underlines.
  (tty-no-underline)

  (ignore-errors (when gpm-mouse-mode (require 't-mouse) (gpm-mouse-enable)))

  (xterm-register-default-colors))

;;; fbterm.el ends here
#+END_SRC



  reply	other threads:[~2011-08-31 16:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-28 14:33 Is it possible to have 256 colors in Emacs on framebuffer-enabled tty zwz
2011-08-28 15:18 ` Eli Zaretskii
2011-08-29  6:06   ` zwz
2011-08-29  6:34     ` Eli Zaretskii
2011-08-29  9:06       ` zwz
2011-08-29  9:42         ` Eli Zaretskii
2011-08-29 22:01         ` David De La Harpe Golden
2011-08-30 14:05           ` zwz
2011-08-30 17:58             ` Eli Zaretskii
2011-08-31 16:23               ` Wolfgang Jenkner [this message]
2011-08-31 17:44                 ` Eli Zaretskii
2011-09-01 14:35                   ` zwz
2011-09-01 15:37                     ` Eli Zaretskii
2011-09-01 14:28                 ` zwz
2011-09-01 15:36                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=858vq9zh1c.fsf@iznogoud.viz \
    --to=wjenkner@inode.at \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=zhangweize@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.