Dear misc@ readers,

>From terminfo(5) man page:

[...]
The setaf/setab and setf/setb capabilities take a single numeric
argument each.
[...]

Well, I'm trying to set up a 256-color terminal:

[....................snip....................]
$ echo $TERM
xterm-256color
$ tput setaf 1
tput: not enough arguments (3) for capability `setaf'
[....................snip....................]

Ok, let's have a look at the terminfo database:

[....................snip....................]
$ infocmp xterm | grep setaf
        setaf=\E[3%p1%dm,
$ infocmp xterm-256color | grep setaf
        setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
[....................snip....................]

Indeed, counting the "%d" occurrences, the setaf capability setting
requires just one argument for "xterm", and three for "xterm-256color".

Not being able to understand the meaning of the terminfo entries, I do
not know how to set those parameters...

At first glance, it seems that the first one is the color (as per
manpage description), and the other two don't have any effect, but I
hope that someone of you guys can remove some clues.

All the best

-- 
Alessandro DE LAURENZIS
[mailto:just22....@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis

Reply via email to