[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: w3m-session-select broken on 256-colour white-on-black terminals

>>>>> In [emacs-w3m : No.09549] Trent W. Buck wrote:

> When invoked thusly, session names (except the one under the cursor)
> are black-on-black, and thus unreadable.

>     $ xrdb /dev/null
>     $ xterm -bg black -fg white -e emacs -nw -q -no-site-file -eval '(add-to-list (quote load-path) "~/.emacs.d/lisp/w3m-el")' -eval "(require 'w3m-session)" -f w3m-session-select

> The problem is that this definition assumes all colour tty displays
> are white-on-black:

>     (defface w3m-session-select
>       `((((class color) (type tty))
>          (:foreground "black"))
>         (((class color) (background light))
>          (:foreground "dark blue"))
>         (((class color) (background dark))
>          (:foreground "white"))
>         (t nil))
>       "Face of w3m-session."
>       :group 'w3m)

Thanks.  I've added face specs to `w3m-session-select' and
`w3m-session-selecte' for the dark tty.  You will need to set
the `frame-background-mode' to `dark' by `M-x customize-option'
if Emacs doesn't detect it automatically.  It can be done with
the following form in your ~/.emacs file as well:

(setq frame-background-mode 'dark)
(mapc 'frame-set-background-mode (frame-list))