]> code.delx.au - gnu-emacs/commitdiff
(Text Terminal Colors): Document tty-display-color-p.
authorEli Zaretskii <eliz@gnu.org>
Fri, 25 Jan 2002 14:15:02 +0000 (14:15 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Jan 2002 14:15:02 +0000 (14:15 +0000)
lispref/frames.texi

index af03160d9921e04129575eeef2a1ba62dbe5ed9c..adae8efe7320d94911bb56b3edb0471464863f7c 100644 (file)
@@ -1575,9 +1575,15 @@ will specify which terminal to operate on (the default being the
 selected frame's terminal; @pxref{Input Focus}).  At present, though,
 the @var{display} argument has no effect.
 
+@defun tty-display-color-p &optional display
+This function returns non-@code{nil} if the terminal on @var{display}
+supports colors.
+@end defun
+
 @defun tty-display-color-cells &optional display
 This function returns the number of distinct colors supported for
-@var{display}.
+@var{display}.  For a monochrome terminal which only supports two
+colors (usually black and white), this function returns zero.
 @end defun
 
 @defun tty-color-define name number &optional rgb display