diff options
author | Eli Zaretskii <eliz@gnu.org> | 2002-01-25 13:21:49 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2002-01-25 13:21:49 +0000 |
commit | bfa62f96ad984f275aec6bb14622b128e81e3c4f (patch) | |
tree | 4275d0fd7918083e562b96fbeee7c541403caf43 /src/term.c | |
parent | d4bc31e91a0bbffa7973f3f99c2fd01561fdc17f (diff) | |
download | emacs-bfa62f96ad984f275aec6bb14622b128e81e3c4f.tar.gz |
(Ftty_display_color_cells): New function.
(syms_of_term): Defsubr it.
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/term.c b/src/term.c index 6326d4b680a..2edee999b6c 100644 --- a/src/term.c +++ b/src/term.c @@ -1983,6 +1983,16 @@ DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, return TN_max_colors > 0 ? Qt : Qnil; } +/* Return the number of supported colors. */ +DEFUN ("tty-display-color-cells", Ftty_display_color_cells, + Stty_display_color_cells, 0, 1, 0, + "Return the number of colors supported by TTY on FRAME.") + (frame) + Lisp_Object frame; +{ + return make_number (TN_max_colors); +} + #ifndef WINDOWSNT /* Save or restore the default color-related capabilities of this @@ -2560,5 +2570,6 @@ The function should accept no arguments. */); Vring_bell_function = Qnil; defsubr (&Stty_display_color_p); + defsubr (&Stty_display_color_cells); } |