Problem getting 16 Colors to work in Pine

Jason Gurtz jason at tommyk.com
Fri Jul 11 22:48:24 PDT 2003


Trying to get 16 color support in Pine-4.56

If I set TERM="xterm-16color" it does auto-detect that the terminal
supports 16 colors, but the last 8 colors show up as blank.  Heck, it
even detects 256 when I try TERM="xterm-256color" but then all the
colors are blank.

It's the same result whether I'm at the local console of in an ssh
session.  I even tried altering xterm-16color into a new
xterm-pine16color terminfo entry using the replacement source lines:

	setaf=%p1%{8}%/%{6}%*%{3}%+\E[%d%p1%{8}%m%dm
	setab=%p1%{8}%/%{6}%*%{4}%+\E[%d%p1%{8}%m%dm

found at:
http://www.washington.edu/pine/tech-notes/config-notes.html#color-config-notes

Running a color testing script like this:

#!/bin/bash
# Display extended ANSI colours.

esc="\033["
echo -n " _ _ _ _ _40 _ _ _ 41_ _ _ _42 _ _ _ 43"
echo -n "_ _ _ 44_ _ _ _45 _ _ _ 46_ _ _ _47 _"
echo -n "_ _ 100 _ _ _101_ _ _ 102 _ _ _103"
echo "_ _ _104_ _ _ 105 _ _ _106_ _ _ 107 _"

for fore in 30 31 32 33 34 35 36 37 90 91 92 93 94 95 96 97; do
    line1="$fore  "
    line2="    "

    for back in 40 41 42 43 44 45 46 47 100 101 102 103 104 105 106 107
    do
        line1="${line1}${esc}${back};${fore}m Normal  ${esc}0m"
        line2="${line2}${esc}${back};${fore};1m Bold    ${esc}0m"
    done

    echo -e "$line1\n$line2"
done

# EOF

Produces a similar effect.  None of the extended colors show up though
the foreground extended show up as white and bright white (same as 37)

Do I need to keep reading my termcap/terminfo book or is the terminal
just incapable??  Would a different graphics card help, right now it's a
matrox millennium II?  So far I've tried TERM=: xterm-color,
xterm-16color, xterm-pine16color, xterm-256color, linux, eterm, Eterm,
Eterm-color, beterm, and a host of others.  The best I got was 8 colors.
 I don't want to say what the worst looked like ;)  Suffice to say I
learned to reset the terminal often, heh.

TIA,

~Jason

-- 

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list