]> git.eshelyaron.com Git - emacs.git/commitdiff
(pong-border-options): Use color on tty if
authorFrancesco Potortì <pot@gnu.org>
Fri, 13 Sep 2002 13:30:09 +0000 (13:30 +0000)
committerFrancesco Potortì <pot@gnu.org>
Fri, 13 Sep 2002 13:30:09 +0000 (13:30 +0000)
available.  Reset color on tty to be [0.5 0.5 0.5].

lisp/play/pong.el

index 07c72a129a351126b6ce0114a0fd0490264f9bf7..11aad3b6ea32becc991faf599a07216f1612ba57 100644 (file)
@@ -75,7 +75,7 @@
   :type 'color)
 
 (defcustom pong-border-color "white"
-  "*Color used for pong balls."
+  "*Color used for pong borders."
   :group 'pong
   :type 'color)
 
   '(((glyph colorize)
      (t ?\+))
     ((color-x color-x)
-     (mono-x grid-x))
-    ;; The colors used to be [0.5 0.5 0.5], but that produces a black
-    ;; color on 8-color tty's, which would make the border invisible.
-    ;; 0.51 produces white on such tty's, and at the same time has
-    ;; almost no effect on X and similar displays.
-    (((glyph color-x) [0.51 0.51 0.51])
+     (mono-x grid-x)
+     (color-tty color-tty))
+    (((glyph color-x) [0.5 0.5 0.5])
      (color-tty pong-border-color))))
 
 (defconst pong-blank   0)