NetBSD-Bugs archive

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

Re: bin/39883: tput support for setaf terminfo sequence is broken



It appears to be ignoring all characters after the first two:

# tput something | od -c
0000000  033   [   7   m
0000004
# tput so | od -c
0000000  033   [   7   m
0000004

# tput setaf | od -c
0000000  033   [   m
0000003
# tput se | od -c
0000000  033   [   m
0000003

Also, tgetnum is returning -1 for all attributes I try, even valid ones!

# this should turn off all attributes according to termcap(5)
# ./tstr me | od -c
Warning: me is not a known attribute
0000000  033   [   m
0000003
# this is the audible bell
# ./tstr bl | od -c
Warning: bl is not a known attribute
0000000  007
0000001
# terminal can backspace with ^H
# ./tstr bs | od -c
Can't happen: tgetnum and tgetflag disagree


Home | Main Index | Thread Index | Old Index