Path: utzoo!attcan!uunet!lll-winken!lll-lcc!pyramid!infmx!aland From: aland@infmx.UUCP (Dr. Scump) Newsgroups: comp.unix.wizards Subject: Re: How to force wraparound at col. 80 Summary: maybe it'll work if you send it this escape sequence Message-ID: <382@infmx.UUCP> Date: 25 Aug 88 01:43:38 GMT References: <4814@netnews.upenn.edu> <1255@mcgill-vision.UUCP> Organization: Informix Software Inc., Menlo Park, CA. Lines: 47 In article <1255@mcgill-vision.UUCP>, mouse@mcgill-vision.UUCP (der Mouse) writes: > In article <4814@netnews.upenn.edu>, spolsky@eniac.seas.upenn.edu (Joel Spolsky) writes: > > Does anybody know how to convince Unix (Sun 3/260) how to > > automatically send a carriage return after 80 columns of output? > > If it's really emulating a VT100, this can be changed. A real VT100 > likes to hammers on the right margin with long lines, but can be set to > wrap. Unfortunately, it's a rather peculiar sort of wrap ("peculiar" > meaning "not many others do it this way"). The implicit CR/LF is > ... > cursor is in the phantom column.) Our VT100 manuals seem to have > disappeared, so I can't give the escape sequence. > (Pet peeve: lots of "vt100 emulators" aren't. It's depressing how many > of them don't do the right thing with ESC [ 4 ; r, for example.) I ran into the same problem dialing-up through MIRROR (a Crosstalk clone) with its vt100 emulator. A *real* vt100 has a setup selection for turning autowrap on/off. Mirror did no such thing, but it *did* process the corresponding escape sequence properly. (BTW, the sequence is: ESC ? 7 h) Therefore, in my .login, I assume wyse50 (work) but switch prompt format, termcap, and force wrap mode on if I reply "vt100" to tset: ------ set noglob; eval `tset -Qs \?wy50n`; unset noglob ... if ($TERM == wy30n || $TERM == wy50n) then ... else alias cd 'cd \!*; set prompt = $EN"#Infmx:"$cwd"# ! > "' # For vt100, reset the erase key and force wrap mode on... # Also, use INFORMIX termcap because Sun's vt100 Fkeys are wrong... if ($TERM == vt100) then setenv TERMCAP $IXD/etc/termcap set noglob; eval `tset -Qs vt100`; unset noglob stty decctlq -ctlecho erase echo '^[[?7h' # ^^ substitute ESC for the "expanded" ^[ endif ... ------ Hope this helps. -- Alan S. Denney | Informix Software, Inc. | {pyramid|uunet}!infmx!aland Disclaimer: These opinions are mine alone. If I am caught or killed, the secretary will disavow any knowledge of my actions. Santos' 4th Law: "Anything worth fighting for is worth fighting *dirty* for"