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.


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, 2015 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, 2015 at 21:41

1 Answer 1


My solution:

1, Download fbterm.el


2, Put configurations in your .emacs

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

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

See Is it possible to have 256 colors in Emacs on framebuffer-enabled tty for more information.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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