Mercurial > emacs
changeset 27087:8de2d17323c2
(Ftty_display_color_p): Accept an optional argument FRAME.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sun, 02 Jan 2000 14:06:15 +0000 |
parents | e0a01300448b |
children | 23bd823f11f4 |
files | src/term.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }