diff options
| author | Robert Pluim | 2024-10-18 11:22:52 +0200 |
|---|---|---|
| committer | Robert Pluim | 2024-10-18 11:44:49 +0200 |
| commit | 2c640e63a8a6ea9f2fbbb55ff44d7a8a0ec0f4b4 (patch) | |
| tree | e2a26814f2cf5517bd241692023fbd2ae2dd5fae /doc/misc | |
| parent | e5d600006e2b283923044d2c139b29dd69f5ac30 (diff) | |
| download | emacs-2c640e63a8a6ea9f2fbbb55ff44d7a8a0ec0f4b4.tar.gz emacs-2c640e63a8a6ea9f2fbbb55ff44d7a8a0ec0f4b4.zip | |
Explain tty-color-mode frame parameter more.
* doc/emacs/cmdargs.texi (Colors X): Explain that tty color
support is dynamic.
* doc/lispref/frames.texi (Font and Color Parameters): Explain
that 'tty-color-mode' can be changed on the fly.
* doc/misc/efaq.texi (Colors on a TTY): Explain how to disable
'tty-color-mode', either at startup or dynamically.
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/efaq.texi | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi index 8c3b81a5fe5..8a7a11071da 100644 --- a/doc/misc/efaq.texi +++ b/doc/misc/efaq.texi | |||
| @@ -1880,6 +1880,21 @@ think that your terminal supports colors, but Emacs won't use them, | |||
| 1880 | check the @code{termcap} entry for your display type for color-related | 1880 | check the @code{termcap} entry for your display type for color-related |
| 1881 | capabilities. | 1881 | capabilities. |
| 1882 | 1882 | ||
| 1883 | If by contrast you wish to @emph{disable} tty color support, either | ||
| 1884 | start emacs with the @samp{--color=no} command-line option, or ensure | ||
| 1885 | that the frame parameter @code{tty-color-mode} is @code{no}, e.g. by | ||
| 1886 | putting the following in your init file: | ||
| 1887 | |||
| 1888 | @lisp | ||
| 1889 | (push '(tty-color-mode . no) default-frame-alist) | ||
| 1890 | @end lisp | ||
| 1891 | |||
| 1892 | To disable tty color support in the @emph{current} frame you can run: | ||
| 1893 | |||
| 1894 | @lisp | ||
| 1895 | (set-frame-parameter nil 'tty-color-mode 'no) | ||
| 1896 | @end lisp | ||
| 1897 | |||
| 1883 | The command @kbd{M-x list-colors-display} pops up a window which | 1898 | The command @kbd{M-x list-colors-display} pops up a window which |
| 1884 | exhibits all the colors Emacs knows about on the current display. | 1899 | exhibits all the colors Emacs knows about on the current display. |
| 1885 | 1900 | ||