diff options
| author | Eli Zaretskii | 2024-10-18 15:46:17 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-10-18 15:46:17 +0300 |
| commit | 19049efd30f5476baa4b69c4b79af15674c2650b (patch) | |
| tree | bec52a03e33dceea6aea4c17028977cc94740e91 /doc | |
| parent | 2c640e63a8a6ea9f2fbbb55ff44d7a8a0ec0f4b4 (diff) | |
| download | emacs-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.texi | 18 | ||||
| -rw-r--r-- | doc/lispref/frames.texi | 3 | ||||
| -rw-r--r-- | doc/misc/efaq.texi | 7 |
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 |
| 1028 | mode. | 1028 | mode. |
| 1029 | @end table | 1029 | @end table |
| 1030 | If @var{mode} is omitted, it defaults to @var{ansi8}. This support is | 1030 | |
| 1031 | dynamic: the current mode is available via the @code{tty-color-mode} | 1031 | This option has no effect on MS-Windows and MS-DOS. |
| 1032 | frame parameter, and it can be changed by modifying that frame parameter. | 1032 | |
| 1033 | This 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} | ||
| 1036 | If @var{mode} is omitted, it defaults to @var{ansi8}. | ||
| 1037 | |||
| 1038 | The color mode can be changed dynamically during a running Emacs | ||
| 1039 | session: the current mode is available via the @code{tty-color-mode} | ||
| 1040 | frame parameter, and it can be changed by modifying that frame | ||
| 1041 | parameter.@footnote{ | ||
| 1042 | This 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 | ||
| 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. This parameter supports dynamic changes. | 2450 | used instead. This parameter supports dynamic changes during a running |
| 2451 | Emacs 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 | ||
| 1892 | To disable tty color support in the @emph{current} frame you can run: | 1892 | @noindent |
| 1893 | To disable tty color support in the @emph{current} frame you can | ||
| 1894 | evaluate: | ||
| 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 | ||
| 1900 | Note that this currently doesn't work on MS-Windows and MS-DOS, whose | ||
| 1901 | text-mode terminals always use the fixed number of 16 text colors. | ||
| 1902 | |||
| 1898 | The command @kbd{M-x list-colors-display} pops up a window which | 1903 | The command @kbd{M-x list-colors-display} pops up a window which |
| 1899 | exhibits all the colors Emacs knows about on the current display. | 1904 | exhibits all the colors Emacs knows about on the current display. |
| 1900 | 1905 | ||