[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Emacs in fbterm.

From: Gregory Heytings
Subject: Re: Using Emacs in fbterm.
Date: Mon, 29 Aug 2022 22:28:43 +0000

Why should Emacs need adapting? Surely these terminfo entries for fbterm's private colours should suffice for ncurses to display them correctly. Or am I missing something?

I meant that (IIUC) an additional file should be added in lisp/term/ for fbterm, not that Emacs should itself send these escape sequences. See the comment in lisp/term/tty-colors.el.

And here is a minimal patch to enable 256 colors under fbterm:

diff --git a/lisp/term/fbterm.el b/lisp/term/fbterm.el
new file mode 100644
index 0000000000..bf12b5ed97
--- /dev/null
+++ b/lisp/term/fbterm.el
@@ -0,0 +1,9 @@
+;;; fbterm.el  -*- lexical-binding:t -*-
+(require 'term/xterm)
+(defun terminal-init-fbterm ()
+  "Terminal initialization function for fbterm."
+  (xterm-register-default-colors xterm-standard-colors))
+(provide 'term/fbterm)

Eli, what else would you recommend to add in that file? I think (tty-no-underline)? And how can I check whether compositions should be disabled, that is, if they confuse cursor movement?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]