diff options
| author | Eli Zaretskii | 2002-01-25 13:53:56 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-01-25 13:53:56 +0000 |
| commit | 8d78fe224269daa1e8c290cf5f7362536a3dfa75 (patch) | |
| tree | eb8715140a8cc65384d7d5352f03ef03dba5a44a /lispref/frames.texi | |
| parent | dd939ea13e99dd57b26d6f012c058f014fc3da32 (diff) | |
| download | emacs-8d78fe224269daa1e8c290cf5f7362536a3dfa75.tar.gz emacs-8d78fe224269daa1e8c290cf5f7362536a3dfa75.zip | |
(Text Terminal Colors): Document tty-display-color-cells.
Diffstat (limited to 'lispref/frames.texi')
| -rw-r--r-- | lispref/frames.texi | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lispref/frames.texi b/lispref/frames.texi index 345f23a3d85..af03160d992 100644 --- a/lispref/frames.texi +++ b/lispref/frames.texi | |||
| @@ -1551,13 +1551,16 @@ and that name is still supported as an alias. | |||
| 1551 | @cindex colors on text-only terminals | 1551 | @cindex colors on text-only terminals |
| 1552 | 1552 | ||
| 1553 | Emacs can display color on text-only terminals, starting with version | 1553 | Emacs can display color on text-only terminals, starting with version |
| 1554 | 21. These terminals support only a small number of colors, and the | 1554 | 21. These terminals usually support only a small number of colors, and |
| 1555 | computer uses small integers to select colors on the terminal. This | 1555 | the computer uses small integers to select colors on the terminal. This |
| 1556 | means that the computer cannot reliably tell what the selected color | 1556 | means that the computer cannot reliably tell what the selected color |
| 1557 | looks like; instead, you have to inform your application which small | 1557 | looks like; instead, you have to inform your application which small |
| 1558 | integers correspond to which colors. However, Emacs does know the | 1558 | integers correspond to which colors. However, Emacs does know the |
| 1559 | standard set of colors and will try to use them automatically. | 1559 | standard set of colors and will try to use them automatically. |
| 1560 | 1560 | ||
| 1561 | The functions described in this section control how terminal colors | ||
| 1562 | are used by Emacs. | ||
| 1563 | |||
| 1561 | @cindex rgb value | 1564 | @cindex rgb value |
| 1562 | Several of these functions use or return @dfn{rgb values}. An rgb | 1565 | Several of these functions use or return @dfn{rgb values}. An rgb |
| 1563 | value is a list of three integers, which give the amount of red, the | 1566 | value is a list of three integers, which give the amount of red, the |
| @@ -1572,6 +1575,11 @@ will specify which terminal to operate on (the default being the | |||
| 1572 | selected frame's terminal; @pxref{Input Focus}). At present, though, | 1575 | selected frame's terminal; @pxref{Input Focus}). At present, though, |
| 1573 | the @var{display} argument has no effect. | 1576 | the @var{display} argument has no effect. |
| 1574 | 1577 | ||
| 1578 | @defun tty-display-color-cells &optional display | ||
| 1579 | This function returns the number of distinct colors supported for | ||
| 1580 | @var{display}. | ||
| 1581 | @end defun | ||
| 1582 | |||
| 1575 | @defun tty-color-define name number &optional rgb display | 1583 | @defun tty-color-define name number &optional rgb display |
| 1576 | @tindex tty-color-define | 1584 | @tindex tty-color-define |
| 1577 | This function associates the color name @var{name} with | 1585 | This function associates the color name @var{name} with |