Xref: utzoo comp.terminals:2644 comp.unix.programmer:1230 Path: utzoo!utgpu!watserv1!maytag!xenitec!sco!staceyc From: staceyc@sco.COM (Stacey Campbell) Newsgroups: comp.terminals,comp.unix.programmer,sco.opendesktop Subject: Re: Alternate character modes on magic_cookie_glitch terminals (long) Keywords: qvt101, freedom100, curses Message-ID: <10625@scolex.sco.COM> Date: Wed, 06 Mar 91 20:18:40 GMT References: <1504@rascal.UUCP> <10513@scolex.sco.COM> <14405@ulysses.att.com> Sender: news@sco.COM Organization: The Santa Cruz Operation, Inc. Lines: 54 In article <14405@ulysses.att.com> kpv@ulysses.att.com (Phong Vo[drew]) writes: >In article <10513@scolex.sco.COM>, staceyc@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 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@sco.com UUCP: {uunet,ucscc,att,sq,altos,lotus,sun,microsoft}!sco!staceyc