aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2002-01-25 13:21:49 +0000
committerEli Zaretskii2002-01-25 13:21:49 +0000
commitbfa62f96ad984f275aec6bb14622b128e81e3c4f (patch)
tree4275d0fd7918083e562b96fbeee7c541403caf43 /src
parentd4bc31e91a0bbffa7973f3f99c2fd01561fdc17f (diff)
downloademacs-bfa62f96ad984f275aec6bb14622b128e81e3c4f.tar.gz
emacs-bfa62f96ad984f275aec6bb14622b128e81e3c4f.zip
(Ftty_display_color_cells): New function.
(syms_of_term): Defsubr it.
Diffstat (limited to 'src')
-rw-r--r--src/term.c11
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,
1983 return TN_max_colors > 0 ? Qt : Qnil; 1983 return TN_max_colors > 0 ? Qt : Qnil;
1984} 1984}
1985 1985
1986/* Return the number of supported colors. */
1987DEFUN ("tty-display-color-cells", Ftty_display_color_cells,
1988 Stty_display_color_cells, 0, 1, 0,
1989 "Return the number of colors supported by TTY on FRAME.")
1990 (frame)
1991 Lisp_Object frame;
1992{
1993 return make_number (TN_max_colors);
1994}
1995
1986#ifndef WINDOWSNT 1996#ifndef WINDOWSNT
1987 1997
1988/* Save or restore the default color-related capabilities of this 1998/* Save or restore the default color-related capabilities of this
@@ -2560,5 +2570,6 @@ The function should accept no arguments. */);
2560 Vring_bell_function = Qnil; 2570 Vring_bell_function = Qnil;
2561 2571
2562 defsubr (&Stty_display_color_p); 2572 defsubr (&Stty_display_color_p);
2573 defsubr (&Stty_display_color_cells);
2563} 2574}
2564 2575