diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-09-01 06:17:37 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-09-01 06:17:37 +0200 |
commit | 0bd860cc2e94e3f5178000e929af93863b9ae458 (patch) | |
tree | b5fca009a2b76625bf021ac69438fc3943cd47de /lisp/term/fbterm.el | |
parent | e8085b1596b07543caadee1e4fa4f9061fbf3d8b (diff) | |
parent | 8807a4f53204674a796cb2db73716e09736b548e (diff) | |
download | emacs-0bd860cc2e94e3f5178000e929af93863b9ae458.tar.gz emacs-0bd860cc2e94e3f5178000e929af93863b9ae458.tar.bz2 emacs-0bd860cc2e94e3f5178000e929af93863b9ae458.zip |
Merge from origin/emacs-28
8807a4f532 Enable 256 colors in fbterm.
bbc23ca8ab One more fix for find-file.el
0cbcaf5119 ; Yet another doc fix for 'ff-other-file-alist' (bug#57325)
2d9a391727 Recommend using fbterm in the Linux console.
a5a92e577c ; * src/window.c (syms_of_window) <window-point-insertion-...
4d52fe6b96 * lisp/find-file.el (ff-other-file-alist): Doc fix. (Bug#...
d111b5b651 * lisp/info.el (Info-mode): Support the Linux console better.
cc945ec0ed ; Fix doc strings in latin1-disp.el
195fcc932e Improve the documentation of glyphless-character display
72ae02377e ; * lisp/jit-lock.el (jit-lock-chunk-size): Doc fix.
3fb69fad49 Fix documentation of 'glyphless-char-display'
# Conflicts:
# lisp/international/characters.el
# src/xdisp.c
Diffstat (limited to 'lisp/term/fbterm.el')
-rw-r--r-- | lisp/term/fbterm.el | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lisp/term/fbterm.el b/lisp/term/fbterm.el new file mode 100644 index 00000000000..ad7150c1a1f --- /dev/null +++ b/lisp/term/fbterm.el @@ -0,0 +1,27 @@ +;;; fbterm.el -*- lexical-binding:t -*- + +;; Copyright (C) 2022 Free Software Foundation, Inc. + +;; Note that, in some versions of fbterm, the TERM environment +;; variable is set to "linux". When that's the case, the code below +;; will not be executed, and only 8 colors will be available. It is +;; therefore necessary, with these versions of fbterm, to set that +;; environment variable to "fbterm" to enable its 256 color mode +;; extension. See also the node "Emacs in a Linux console" of the +;; Emacs FAQ. + +(require 'term/xterm) + +(defun terminal-init-fbterm () + "Terminal initialization function for fbterm." + + ;; fbterm can't display underlines, even though its terminfo data + ;; says it can. + (tty-no-underline) + + ;; fbterm supports xterm's 256 color mode extension. + (xterm-register-default-colors xterm-standard-colors)) + +(provide 'term/fbterm) + +;;; fbterm.el ends here |