ronbe@tekred.UUCP (Little Guy) (05/20/85)
Help! Can somone tell me why the termcap entry setenv TERMCAP 'M6|trs80|trs-80:\ ae=^V:am:as=^V:bs:bw:cd=\037:\ ce=\036:cl=20*\034\037:co#64:do=^Z:ho=\034:\ is=\034\037:kr=\t:ku=[:li#16:ll=\034\033:\ nd=^Y:up=\E' works, but setenv TERMCAP 'M6|trs80|trs-80:\ am:bs:bw:cd=\037:\ ce=\036:cl=20*\034\037:co#64:do=^Z:ho=\034:\ is=\034\037:kr=\t:ku=[:li#16:ll=\034\033:\ nd=^Y:up=\E' doesn't do the automatic margins correctly (am)? The only difference is the removal of the alternate character set switches. I'm now using my own video control code, and didn't do anything with the alternate character set. But now the am switch doesn't seem to work. What worked fine before now gives me wra p-around lines like this. Any ideas? Did I find a bug? (11/70A PDP11 Berkeley 2.9bsd) -- New dictionary entries: recursion: see recursive recursive: see recursion ...tektronix!tekred!ronbe (Ron Bemis)
chris@umcp-cs.UUCP (Chris Torek) (05/22/85)
> Can somone tell me why the termcap entry > setenv TERMCAP 'M6|trs80|trs-80:\ > ae=^V:am:as=^V:bs:bw:cd=\037:\ [...] > works, but > setenv TERMCAP 'M6|trs80|trs-80:\ > am:bs:bw:cd=\037:\ [...] > doesn't do the automatic margins correctly (am)? > The only difference is the removal of the > alternate character set switches. That's not the only difference. The second one also has "am" as the first "entry" on the line. That should make you suspicious. Examination of the termcap code should make you even more suspicious. Your problem will go away if you put a : in front of each first "entry" on the line: termcap is not doing what you think it's doing with continuation lines. (Ever try doing tgetflag("\n\t")...?) -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251) UUCP: seismo!umcp-cs!chris CSNet: chris@umcp-cs ARPA: chris@maryland