comparison src/term.c @ 42954:e514d4931d6f

(Ftty_display_color_cells): New function. (syms_of_term): Defsubr it.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 25 Jan 2002 13:21:49 +0000
parents cb0b3b9b61ec
children 478fca8e08b4
comparison
equal deleted inserted replaced
42953:9071f84734d8 42954:e514d4931d6f
1981 Lisp_Object frame; 1981 Lisp_Object frame;
1982 { 1982 {
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. */
1987 DEFUN ("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
1989 terminal. */ 1999 terminal. */
1990 static void 2000 static void
2558 doc: /* Non-nil means call this function to ring the bell. 2568 doc: /* Non-nil means call this function to ring the bell.
2559 The function should accept no arguments. */); 2569 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);
2563 } 2573 defsubr (&Stty_display_color_cells);
2564 2574 }
2575