aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/emacs/cmdargs.texi6
-rw-r--r--doc/lispref/frames.texi2
-rw-r--r--doc/misc/efaq.texi15
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
1028mode. 1028mode.
1029@end table 1029@end table
1030If @var{mode} is omitted, it defaults to @var{ansi8}. 1030If @var{mode} is omitted, it defaults to @var{ansi8}. This support is
1031dynamic: the current mode is available via the @code{tty-color-mode}
1032frame parameter, and it can be changed by modifying that frame parameter.
1033This 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
2448If the parameter's value is a symbol, it specifies a number through 2448If the parameter's value is a symbol, it specifies a number through
2449the value of @code{tty-color-mode-alist}, and the associated number is 2449the value of @code{tty-color-mode-alist}, and the associated number is
2450used instead. 2450used 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,
1880check the @code{termcap} entry for your display type for color-related 1880check the @code{termcap} entry for your display type for color-related
1881capabilities. 1881capabilities.
1882 1882
1883If by contrast you wish to @emph{disable} tty color support, either
1884start emacs with the @samp{--color=no} command-line option, or ensure
1885that the frame parameter @code{tty-color-mode} is @code{no}, e.g. by
1886putting the following in your init file:
1887
1888@lisp
1889(push '(tty-color-mode . no) default-frame-alist)
1890@end lisp
1891
1892To 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
1883The command @kbd{M-x list-colors-display} pops up a window which 1898The command @kbd{M-x list-colors-display} pops up a window which
1884exhibits all the colors Emacs knows about on the current display. 1899exhibits all the colors Emacs knows about on the current display.
1885 1900