diff options
| author | Francesco Potortì | 2002-09-13 13:30:09 +0000 |
|---|---|---|
| committer | Francesco Potortì | 2002-09-13 13:30:09 +0000 |
| commit | 6add75170c960eb2ab76da9281044c88ee8bf764 (patch) | |
| tree | 3707220a6486979544d5644f90c457a4f07a771b | |
| parent | a4afd28511e77af399535035b2dabc3a1b9fa0f0 (diff) | |
| download | emacs-6add75170c960eb2ab76da9281044c88ee8bf764.tar.gz emacs-6add75170c960eb2ab76da9281044c88ee8bf764.zip | |
(pong-border-options): Use color on tty if
available. Reset color on tty to be [0.5 0.5 0.5].
| -rw-r--r-- | lisp/play/pong.el | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lisp/play/pong.el b/lisp/play/pong.el index 07c72a129a3..11aad3b6ea3 100644 --- a/lisp/play/pong.el +++ b/lisp/play/pong.el | |||
| @@ -75,7 +75,7 @@ | |||
| 75 | :type 'color) | 75 | :type 'color) |
| 76 | 76 | ||
| 77 | (defcustom pong-border-color "white" | 77 | (defcustom pong-border-color "white" |
| 78 | "*Color used for pong balls." | 78 | "*Color used for pong borders." |
| 79 | :group 'pong | 79 | :group 'pong |
| 80 | :type 'color) | 80 | :type 'color) |
| 81 | 81 | ||
| @@ -155,12 +155,9 @@ | |||
| 155 | '(((glyph colorize) | 155 | '(((glyph colorize) |
| 156 | (t ?\+)) | 156 | (t ?\+)) |
| 157 | ((color-x color-x) | 157 | ((color-x color-x) |
| 158 | (mono-x grid-x)) | 158 | (mono-x grid-x) |
| 159 | ;; The colors used to be [0.5 0.5 0.5], but that produces a black | 159 | (color-tty color-tty)) |
| 160 | ;; color on 8-color tty's, which would make the border invisible. | 160 | (((glyph color-x) [0.5 0.5 0.5]) |
| 161 | ;; 0.51 produces white on such tty's, and at the same time has | ||
| 162 | ;; almost no effect on X and similar displays. | ||
| 163 | (((glyph color-x) [0.51 0.51 0.51]) | ||
| 164 | (color-tty pong-border-color)))) | 161 | (color-tty pong-border-color)))) |
| 165 | 162 | ||
| 166 | (defconst pong-blank 0) | 163 | (defconst pong-blank 0) |