Alternate character modes on magic_cookie_glitch terminals (long)
Stacey Campbell
staceyc at sco.COM
Thu Mar 7 06:18:40 AEST 1991
In article <14405 at ulysses.att.com> kpv at ulysses.att.com (Phong Vo[drew]) writes:
>In article <10513 at scolex.sco.COM>, staceyc at sco.COM (Stacey Campbell) writes:
>: becomes clear. Your qvt101 entry contains the numeric capability
>: xmc#0. The guy who wrote System V.3.2 curses claims that it deals
>: with magic cookies correctly [...]
>
>On terminals with magic cookies, you must define "xmg" for terminfo
>(or "sg" for termcap) for curses to work correctly.
>You do not need to do anything else.
Now we enter deep water. There is no mention of xmg in either the
AT&T 3.2.0 source or AT&T 3.2.1 source. tic definitely doesn't like it.
Do you mean xmc? I've compiled the following program with the stock
AT&T 3.2.1 curses source and with xmc#0 and xmc#1 and it does not emit the
sequence to turn off smacs (either sgr0 or rmacs). Is this a bug in the
C example (probably not), terminfo file (maybe, I've never written a
magic cookie terminfo file, though it looks okay), or in libcurses.a?
Comments?
#include <curses.h>
int main()
{
int index;
initscr();
addch(ACS_ULCORNER);
for (index = 1; index < 20; index++)
addch(ACS_HLINE);
addch(ACS_URCORNER);
refresh();
endwin();
}
The terminfo file;
# Terminfo source code for theo's qvt101 terminal
qp|qvt101+so|Qume qvt101 + terminal,
cr=^M, cud1=^J, ind=^J, bel=^G,
is2=\E0P\Ew\E.4\E(\EC\E%\EX\E\047\E+\Ef^M\Eg,
clear=\E+, tbc=\E3, hts=\E1, sam, cols#80, lines#24, cr=^M, nel=^J,
xmc#0,
khome=^^, kcuf1=^L, kcub1=^H, kcud1=^J, kcuu1=^K,
cup=\E=%p1%' '%+%c%p2%' '%+%c, cvvis=\E.1, cnorm=\E.4\E*,
cbt=\EI, cud1=^J, cuf1=^L, cuu1=^K, home=^^,
cub1=^H, ul, smso=\E), rmso=\E(, el=\Et, ed=\Ey, il1=\EE,
dl1=\ER, dch1=\EW, ich1=\EQ, smul=\EG8, rmul=\EG0, rmacs=\E%%,
smacs=\E$, sgr0=\E(\E%%,
kf1=^A@^M, kf2=^AA^M, kf3=^AB^M, kf4=^AC^M, kf5=^AD^M, kf6=^AE^M,
kf7=^AF^M, kf8=^AG^M, kf9=^AH^M, kf0=^AI^M,
acsc=kkllmmjjnnwwvvuuttqqxx,
--
Stacey Campbell
Internet: staceyc at sco.com
UUCP: {uunet,ucscc,att,sq,altos,lotus,sun,microsoft}!sco!staceyc
More information about the Comp.unix.programmer
mailing list