[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 19:55:26 +0000 |
What does the terminfo DB say about commands to set color on fbterm?
Here's the comparison of the relevant entries between linux and
fbterm. I don't know where the fbterm entries come from, they seem to
be based on some patched version.
Not surprisingly, the differences are in color commands.
I guess the safest fix is to add an additional note about this in the
FAQ entry?
And the details are in the manpage:
FbTerm supports xterm's 256 color mode extension. The first 16 colors are
the default terminal colors. Additionally, there's a 6x6x6 color cube, and
24 grayscale tones. But xterm's 256 color escape sequences conflict with
the linux sequences implemented by FbTerm, so private escape sequences
were introduced to support this feature:
ESC [ 1 ; n } set foreground color to n (0 - 255)
ESC [ 2 ; n } set background color to n (0 - 255)
ESC [ 3 ; n ; r ; g ; b } set color n to (r, g, b) , n, r, g, b all in (0 -
255)
A new terminfo database entry named "fbterm" was added to use these
private sequences, all program based on terminfo should work with it. By
default, FbTerm sets environment variable "TERM" to value "linux", user
need run "TERM=fbterm /path/to/program" to enable 256 color mode.
Apparently some distros have chosen to enable that 256 color mode by
default.
- Using Emacs in fbterm., Alan Mackenzie, 2022/08/29
- Re: Using Emacs in fbterm., Eli Zaretskii, 2022/08/29
- Re: Using Emacs in fbterm., Alan Mackenzie, 2022/08/29
- Re: Using Emacs in fbterm., Eli Zaretskii, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm., Eli Zaretskii, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm., Eli Zaretskii, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm.,
Gregory Heytings <=
- Re: Using Emacs in fbterm., Andreas Schwab, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm., Andreas Schwab, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm., Alan Mackenzie, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/29
- Re: Using Emacs in fbterm., Eli Zaretskii, 2022/08/30
- Re: Using Emacs in fbterm., Gregory Heytings, 2022/08/30
- Re: Using Emacs in fbterm., Eli Zaretskii, 2022/08/30