]> git.eshelyaron.com Git - emacs.git/commitdiff
(widget-field-face, widget-single-line-field-face):
authorEli Zaretskii <eliz@gnu.org>
Wed, 17 Oct 2001 18:49:38 +0000 (18:49 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 17 Oct 2001 18:49:38 +0000 (18:49 +0000)
Define special colors for a tty.

lisp/ChangeLog
lisp/wid-edit.el

index 98f1fd8a07cb2378fd0b3702f6fdd12c221ad329..031cdd4c4c8deea0abb3cdb384bd92d539812b6c 100644 (file)
@@ -1,9 +1,14 @@
+2001-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * wid-edit.el (widget-field-face, widget-single-line-field-face):
+       Define special colors for a tty.
+
 2001-10-17  Francesco Potorti`  <pot@gnu.org>
 
        * comint.el (comint-password-prompt-regexp): Make it less
        restrictive, letting comint recognise OpenSSH2 passphrase prompts.
 
-2001-10-15  John Wiegley  <johnw@gnu.org>
+2001-10-17  John Wiegley  <johnw@gnu.org>
 
        * eshell/em-unix.el (eshell/cat): Do a quick test if something is
        a regular file, before checking if it is a directory or symlink.
index dad3082ace6e5f5457bce12a48eb37081462c787..71af16d28bfb2946d16ef218a79137056231e792 100644 (file)
@@ -120,7 +120,12 @@ This exists as a variable so it can be set locally in certain buffers.")
   :type 'face
   :group 'widget-faces)
 
-(defface widget-field-face '((((class grayscale color)
+;; TTY gets special definitions here and in the next defface, because
+;; the gray colors defined for other displays cause black text on a black
+;; background, at least on light-background TTYs.
+(defface widget-field-face '((((type tty))
+                             (:background "yellow3"))
+                            (((class grayscale color)
                               (background light))
                              (:background "gray85"))
                             (((class grayscale color)
@@ -131,7 +136,9 @@ This exists as a variable so it can be set locally in certain buffers.")
   "Face used for editable fields."
   :group 'widget-faces)
 
-(defface widget-single-line-field-face '((((class grayscale color)
+(defface widget-single-line-field-face '((((type tty))
+                                         (:background "green3"))
+                                        (((class grayscale color)
                                           (background light))
                                          (:background "gray85"))
                                         (((class grayscale color)