Last active
August 22, 2025 11:15
-
-
Save sefidel/5f7f46783ad527ada98caa13e32efd42 to your computer and use it in GitHub Desktop.
Terminfo files with Emacs 24-bit colour support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # NOTE: Foot should work out of the box with Emacs >28. | |
| # This file exists to get around the issue with `RGB` capability, which is: | |
| # - #000000~000007 is interpreted as color0~7 for backwards compatibility | |
| foot-emacs|foot with 24-bit direct color mode for Emacs, | |
| use=foot, | |
| setb24=\E[48\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&\ | |
| %d\:%p1%{255}%&%dm, | |
| setf24=\E[38\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&\ | |
| %d\:%p1%{255}%&%dm, | |
| foot-direct-emacs|foot-direct with 24-bit direct color mode for Emacs, | |
| use=foot-direct, | |
| setb24=\E[48\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&\ | |
| %d\:%p1%{255}%&%dm, | |
| setf24=\E[38\:2\:\:%p1%{65536}%/%d\:%p1%{256}%/%{255}%&\ | |
| %d\:%p1%{255}%&%dm, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xterm-24bit|xterm with 24-bit direct color mode, | |
| use=xterm-256color, | |
| sitm=\E[3m, | |
| ritm=\E[23m, | |
| setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, | |
| setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment