tweaking d3-mon so HELP sessions look better -
05-10-2011
, 01:01 AM
Have any of you tweaked the as-shipped D3-MON devices entry
to make HELP behave better?
I found settings that work for an Accuterm session in Linux
Console emulation, and I found other settings that work on the real
sytem console, but have yet to find a compromise that works for both.
HELP seems to be using @(-100) and @(-101) to highlight those
left-side headings, but with the stock d3-mon on a real linux console
I get no font/color changes at all, and on accuterm 2k2 in
Linux Console emulation I get boldfacing, but wrong polarity -- I'll call
the font I start out with when I log on 'Normal', and when I leave HELP
I'm flipped over to the boldface font. I have to reset the terminal or
arrange corrective escape codes after each HELP session.
The quick and dirty fix for use in the emulator is to trade contents of
the <-100 and <-101 lines then compile with TERM D3-MONfoo (C
On the physical server console I abandon the bright/not bright that d3-mon
had been using, and instead go with dim/not dim codes, plus codes to
nominate the color cyan to indicate dim.
D,X'1B',C'[2;6]',X'1B',C'[2m',< -100 DIM
D,X'1B',C'[1m',< -101 BRIGHT
I still haven't found settings that work both places.
Oh, I did linux setterm -sethbcolor turquoise | od -c
to see that esc then [2;6] nominates turquoise as signal 'half bright'
on a real console, and setterm -half-bright on | od -c
to see that esc then [2m turns on half bright.
esc then [22m turns off half bright, it also turns off bold.
esc then [1m is supposed to turn on bold, but seems to have no
effect, at least on my console. I've tried running the monitor
brightness and contrast up and down, but it made no difference...
Other reference materials;
man console_codes
infocmp -F linux-vt | less
see man terminfo for description of the output |