# HG changeset patch # User Eli Zaretskii # Date 946821975 0 # Node ID 8de2d17323c28984270aa9d9bb820648f4cced22 # Parent e0a01300448be0ae82fe9f4dda9313ed549b25b8 (Ftty_display_color_p): Accept an optional argument FRAME. diff -r e0a01300448b -r 8de2d17323c2 src/term.c --- a/src/term.c Sun Jan 02 14:00:03 2000 +0000 +++ b/src/term.c Sun Jan 02 14:06:15 2000 +0000 @@ -2055,9 +2055,10 @@ /* Return non-zero if the terminal is capable to display colors. */ DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, - 0, 0, 0, - "Return non-nil if TTY can display colors.") - () + 0, 1, 0, + "Return non-nil if TTY can display colors on FRAME.") + (frame) + Lisp_Object frame; { return TN_max_colors > 0 ? Qt : Qnil; }