Subject: Re: Sending an escape sequence to the console terminal
To: None <JohnAM@datastorm.com>
From: Mike Long <mike.long@analog.com>
List: netbsd-users
Date: 04/23/1997 20:47:33
>From: John Maier <JohnAM@datastorm.com>
>Date: Tue, 28 Nov 95 14:43:00 PST

>I have pcvt setup.  I know that ^[[?3h will put a regular VT100 into 132   
>col mode.
>
>How do I state this in an echo statement to get pcvt to go into 132 col   
>mode?

Here's one way that will always work:

echo -n "E[?3h" | tr E \\033

gross, eh? :-)  You might prefer printf(1).
-- 
Mike Long <mike.long@analog.com>           http://www.shore.net/~mikel
VLSI Design Engineer         finger mikel@shore.net for PGP public key
Analog Devices, CPD Division          CCBF225E7D3F7ECB2C8F7ABB15D9BE7B
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));