changeset 42961:3bd7e8f774e5

(Text Terminal Colors): Document tty-display-color-p.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 25 Jan 2002 14:15:02 +0000
parents 3d42a88083b3
children 201a6b278692
files lispref/frames.texi
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lispref/frames.texi	Fri Jan 25 14:11:11 2002 +0000
+++ b/lispref/frames.texi	Fri Jan 25 14:15:02 2002 +0000
@@ -1575,9 +1575,15 @@
 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