From: Andi C. S. <ski...@ya...> - 2012-11-09 23:06:18
|
Hello and thanks, > pts_0-linux.log, pts-0_xterm.log, pts-0_mlterm.log contains > "\x1b[30m" which makes foreground color black and immediately following > "\x1b[40m" which makes background color black. > > I think this problem isn't caused by mlterm but by the configuration > of mutt. > > How about adding a following line to ~/.muttrc > > color normal default default You were right; it was mutt. Even though no colours were specified, it chose black on black for some reason. NVLC probably has the same problem, but I can't verify it because the colour scheme can't be changed. I'll try to talk with the people who maintain them. > How do you change the cursor color ? > Doesn't a following command work ? > > echo -e "\x1b]12;red\x07" Yes, it does make it (dark) red. I don't normally change it, though; I use the default (which is reverse-video) plus blink. Since the TERM values better supported by applications such as linux and xterm require bce, I have to append ut to their entries in ./mlterm/termcap, otherwise coloured areas don't fill as they should. Doing so, however, will trigger the aforementioned coloured cursor glitch. > Indeed it is possible to ignore color sequences (ESC [ m) except black > and white, but is it necessary to support a monochrome terminal ? > Furthermore I think the binary won't be smaller than expected. Actually, I think xterm's colorMode: 0 disregards all colour sequences, including black and white. Since there's only one colour anyway (+ RV), there's no need for them anymore, and they might also mess up some things, so that's the way I think it should be done. It may or may not disable other things like colour for attributes, cursor colour and so on (I don't remember exactly how it works), but that's not important. If there's no benefit to disabling colour at compile-time, then of course there's no reason to do it. An option to ignore colour escapes, however, would help in eliminating the coloured output that some apps (mostly non-curses) output gratuitously, regardless of what TERM is. Since I started fiddling around with those terminfos, I have (for one) found out that plain monochrome (plus the various attributes) is very pleasant, yet can still convey sufficient information. Removing the distraction of coloured text in this case is, ultimately, a matter of personal preference. Others may not like it (or may not care), but I still think It's a good thing to have, at least for customisation's sake. Regards, Andi Șerbănescu |