aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2002-01-25 13:20:18 +0000
committerEli Zaretskii2002-01-25 13:20:18 +0000
commitd4bc31e91a0bbffa7973f3f99c2fd01561fdc17f (patch)
tree277e7c6830164fd285e42c7193a4e6a5147e8581
parenta6ab2fcfb3587532167d953b7844544905d6fac8 (diff)
downloademacs-d4bc31e91a0bbffa7973f3f99c2fd01561fdc17f.tar.gz
emacs-d4bc31e91a0bbffa7973f3f99c2fd01561fdc17f.zip
(command-line): Call tty-register-default-colors.
-rw-r--r--lisp/startup.el13
1 files changed, 1 insertions, 12 deletions
diff --git a/lisp/startup.el b/lisp/startup.el
index 18e33f2e3e9..12097f5fe8f 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -835,18 +835,7 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
835 ;; We do this regardles of whether the terminal supports colors 835 ;; We do this regardles of whether the terminal supports colors
836 ;; or not, since they can switch that support on or off in 836 ;; or not, since they can switch that support on or off in
837 ;; mid-session by setting the tty-color-mode frame parameter. 837 ;; mid-session by setting the tty-color-mode frame parameter.
838 (let* ((colors (cond ((eq window-system 'pc) 838 (tty-register-default-colors))
839 msdos-color-values)
840 ((eq system-type 'windows-nt)
841 w32-tty-standard-colors)
842 (t tty-standard-colors)))
843 (color (car colors)))
844 (while colors
845 (tty-color-define (car color) (cadr color) (cddr color))
846 (setq colors (cdr colors) color (car colors)))
847 ;; Modifying color mappings means realized faces don't
848 ;; use the right colors, so clear them.
849 (clear-face-cache)))
850 839
851 ;; Record whether the tool-bar is present before the user and site 840 ;; Record whether the tool-bar is present before the user and site
852 ;; init files are processed. frame-notice-user-settings uses this 841 ;; init files are processed. frame-notice-user-settings uses this