[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/term.c
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/src/term.c |
Date: |
Fri, 25 Jan 2002 08:21:49 -0500 |
Index: emacs/src/term.c
diff -c emacs/src/term.c:1.134 emacs/src/term.c:1.135
*** emacs/src/term.c:1.134 Thu Jan 17 05:26:52 2002
--- emacs/src/term.c Fri Jan 25 08:21:49 2002
***************
*** 1983,1988 ****
--- 1983,1998 ----
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,2564 ****
--- 2570,2575 ----
Vring_bell_function = Qnil;
defsubr (&Stty_display_color_p);
+ defsubr (&Stty_display_color_cells);
}