I'm working on a ncurses application. Right now I have a customized ansi terminfo entry and it works mostly like I want it to.
However I'd like to tweak the colors a bit, but I'm having trouble deciphering the setf and setb entries. Right now I have..
setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
The man page on terminfo seems simplistic when explaining setf and setb. Can someone please explain how this string is broken down into different parts?
I'm guessing that several colors are defined in each string, I'm just wondering where one part ends and another begins.
Thanks,
Bob
However I'd like to tweak the colors a bit, but I'm having trouble deciphering the setf and setb entries. Right now I have..
setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
The man page on terminfo seems simplistic when explaining setf and setb. Can someone please explain how this string is broken down into different parts?
I'm guessing that several colors are defined in each string, I'm just wondering where one part ends and another begins.
Thanks,
Bob