aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2024-10-18 15:46:17 +0300
committerEli Zaretskii2024-10-18 15:46:17 +0300
commit19049efd30f5476baa4b69c4b79af15674c2650b (patch)
treebec52a03e33dceea6aea4c17028977cc94740e91 /doc
parent2c640e63a8a6ea9f2fbbb55ff44d7a8a0ec0f4b4 (diff)
downloademacs-19049efd30f5476baa4b69c4b79af15674c2650b.tar.gz
emacs-19049efd30f5476baa4b69c4b79af15674c2650b.zip
; Fix last documentation change
* doc/misc/efaq.texi (Colors on a TTY): * doc/lispref/frames.texi (Font and Color Parameters): * doc/emacs/cmdargs.texi (Colors X): More accurate documentation of TTY color modes and 'tty-color-mode' frame parameter. (Bug#73813)
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/cmdargs.texi18
-rw-r--r--doc/lispref/frames.texi3
-rw-r--r--doc/misc/efaq.texi7
3 files changed, 22 insertions, 6 deletions
diff --git a/doc/emacs/cmdargs.texi b/doc/emacs/cmdargs.texi
index 9b72b883628..08e67c891a5 100644
--- a/doc/emacs/cmdargs.texi
+++ b/doc/emacs/cmdargs.texi
@@ -1027,10 +1027,20 @@ 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}. This support is 1030
1031dynamic: the current mode is available via the @code{tty-color-mode} 1031This option has no effect on MS-Windows and MS-DOS.
1032frame parameter, and it can be changed by modifying that frame parameter. 1032
1033This means you can also specify the initial value via 1033@cindex colors on character terminal, changing during session
1034@cindex character terminal, change color mode
1035@vindex tty-color-mode@r{, frame parameter}
1036If @var{mode} is omitted, it defaults to @var{ansi8}.
1037
1038The color mode can be changed dynamically during a running Emacs
1039session: the current mode is available via the @code{tty-color-mode}
1040frame parameter, and it can be changed by modifying that frame
1041parameter.@footnote{
1042This does not work on MS-Windows and MS-DOS text-mode terminals.
1043} This means you can also specify the initial value via
1034@code{default-frame-alist} instead of the command-line option. 1044@code{default-frame-alist} instead of the command-line option.
1035@end table 1045@end table
1036 1046
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 694f33af8ee..fccc40d4ccc 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -2447,7 +2447,8 @@ 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. This parameter supports dynamic changes. 2450used instead. This parameter supports dynamic changes during a running
2451Emacs session (but not on MS-Windows and MS-DOS).
2451 2452
2452@vindex screen-gamma@r{, a frame parameter} 2453@vindex screen-gamma@r{, a frame parameter}
2453@item screen-gamma 2454@item screen-gamma
diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index 8a7a11071da..1fe006c1249 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -1889,12 +1889,17 @@ putting the following in your init file:
1889(push '(tty-color-mode . no) default-frame-alist) 1889(push '(tty-color-mode . no) default-frame-alist)
1890@end lisp 1890@end lisp
1891 1891
1892To disable tty color support in the @emph{current} frame you can run: 1892@noindent
1893To disable tty color support in the @emph{current} frame you can
1894evaluate:
1893 1895
1894@lisp 1896@lisp
1895(set-frame-parameter nil 'tty-color-mode 'no) 1897(set-frame-parameter nil 'tty-color-mode 'no)
1896@end lisp 1898@end lisp
1897 1899
1900Note that this currently doesn't work on MS-Windows and MS-DOS, whose
1901text-mode terminals always use the fixed number of 16 text colors.
1902
1898The command @kbd{M-x list-colors-display} pops up a window which 1903The command @kbd{M-x list-colors-display} pops up a window which
1899exhibits all the colors Emacs knows about on the current display. 1904exhibits all the colors Emacs knows about on the current display.
1900 1905