2

Is there a way to get emacs with 256 colors in FbTerm?

I've seen some old posts on the topic but I haven't seen any confirmation that it will work.

EDIT:

If I start FbTerm with this command:

FBTERM=1 fbterm

... and with this in my .bashrc:

[ -n $FBTERM ] && export TERM=fbterm 

(as described here)

... then I get 256 colors in fbterm (confirmed by running the perl script from here) but I still only get 8 colors in emacs.

In addition, I've tried this solution but with no succes.

  • Do other applications work with 256 colors in FbTerm? – PythonNut Mar 9 '15 at 21:23
  • 1
    Well have you tried what those posts said to do? (And link to the posts instead of just saying they exist). – phils Mar 9 '15 at 21:41
0

My solution:

1, Download fbterm.el

https://raw.githubusercontent.com/tangxinfa/desktop/master/lisp/term/fbterm.el 

2, Put configurations in your .emacs

;; 256 colors support for fbterm.
(when (string-equal (getenv "TERM") "fbterm")
  (load "path/of/fbterm.el")
  (terminal-init-fbterm))

3, Startup emacs with fbterm, makesure TERM environment variable is fbterm.

See 256 colors in FbTerm for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.