On Sun, Nov 04, 2007 at 04:06:58AM +1300, Atom Smasher wrote: > after rolling up my sleeves and getting a termcap working (so it seems) i > still can't figure the nuances between: > smacs rmacs (terminfo) > as ae (termcap) > ^N ^O form 1 (older?) > ^[(0 ^[(B form 2 (newer?) > > on both mrxvt and xterm either form of this sequence puts the display into > (out of) alternate character mode, but i've got a weird edge case that > causes problems.... i think the cause of the problem is that (on both > xterm and mrxvt) if i use one form to get into the alternate character set > i have to use the same form to get out... i can't mix and match forms to > enter (and exit) alternate character mode. > > i'm not sure if that's a bug or if it's that way for historical reasons, > but in the particular case i've got it's rather annoying. > > in both xterm and mrxvt i can't find any documentation to support the > 2nd form, except that a bunch of termcap/terminfo files use it and the > inconvenient fact that it works. the first form seems to be well > documented and it works just as well.
In mrxvt, you can find the above documented in the file mrxvt_seq.txt.bz2, supplied with the source. (Look around line 72). > then i've got to figure out why a linux box that i've got a shell on > reports this as the setaf/AF string in 256 color mode (xterm-256color): > ^[[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m > wtf?!?!? > > it would seem like a typo in the termcap, except that setab/AB reports > this: > ^[[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m > > in both cases it looks like the correct string is at the end. This is probably some conditional termcap string. I vaguely remember %? starting a conditional... GI -- 100 THINGS I'D DO IF I EVER BECAME AN EVIL OVERLORD 77. If I have a fit of temporary insanity and decide to give the hero the chance to reject a job as my trusted lieutenant, I will retain enough sanity to wait until my current trusted lieutenant is out of earshot before making the offer. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Materm-usage mailing list Materm-usage@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/materm-usage Mrxvt home page: http://materm.sourceforge.net