diff options
| -rw-r--r-- | doc/emacs/cmdargs.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 2 | ||||
| -rw-r--r-- | doc/misc/efaq.texi | 15 |
3 files changed, 21 insertions, 2 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi index ba4b45d272b..9b72b883628 100644 --- a/doc/emacs/cmdargs.texi +++ b/doc/emacs/cmdargs.texi | |||
| @@ -1027,7 +1027,11 @@ there is no mode that supports @var{num} colors, Emacs acts as if | |||
| 1027 | @var{num} were 0, i.e., it uses the terminal's default color support | 1027 | @var{num} were 0, i.e., it uses the terminal's default color support |
| 1028 | mode. | 1028 | mode. |
| 1029 | @end table | 1029 | @end table |
| 1030 | If @var{mode} is omitted, it defaults to @var{ansi8}. | 1030 | If @var{mode} is omitted, it defaults to @var{ansi8}. This support is |
| 1031 | dynamic: the current mode is available via the @code{tty-color-mode} | ||
| 1032 | frame parameter, and it can be changed by modifying that frame parameter. | ||
| 1033 | This means you can also specify the initial value via | ||
| 1034 | @code{default-frame-alist} instead of the command-line option. | ||
| 1031 | @end table | 1035 | @end table |
| 1032 | 1036 | ||
| 1033 | For example, to use a coral mouse cursor and a slate blue text cursor, | 1037 | For example, to use a coral mouse cursor and a slate blue text cursor, |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 8744687a531..694f33af8ee 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -2447,7 +2447,7 @@ off color support. | |||
| 2447 | 2447 | ||
| 2448 | If the parameter's value is a symbol, it specifies a number through | 2448 | If the parameter's value is a symbol, it specifies a number through |
| 2449 | the value of @code{tty-color-mode-alist}, and the associated number is | 2449 | the value of @code{tty-color-mode-alist}, and the associated number is |
| 2450 | used instead. | 2450 | used instead. This parameter supports dynamic changes. |
| 2451 | 2451 | ||
| 2452 | @vindex screen-gamma@r{, a frame parameter} | 2452 | @vindex screen-gamma@r{, a frame parameter} |
| 2453 | @item screen-gamma | 2453 | @item screen-gamma |
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 | ||