Bernd Jendrissek <berndj@prism.co.za> writes:
> On Tue, Mar 09, 2004 at 12:07:27PM -0700, Meg Abyte wrote:
>> >Can you quote what stty gives you when you say
>> ># stty -F /dev/tts/0 -a
>> >please?
>>
>> speed 9600 baud; rows 0; columns 0; line = 0;
>> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
>> eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase =
^W;
>> lnext = ^V; flush = ^O; min = 1; time = 0;
>> -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
>> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
> ^^^^^
>> -ixoff
>> -iuclc -ixany -imaxbel
>> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0
> ^^^^^ ^^^^^
>> ff0
>> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop
-echoprt
>> echoctl echoke
>
> Turn those two off. Not sure about opost, but I'd guess you might as
> well kill that too.
Turning off opost will disable _all_ postprocessing on output, so that
all other output settings are ignored.
> According to your settings, you'd have this mapping:
>
> File contents Serial port output
> \012 (LF) \015 (should work)
> \015 (CR) \015 (should work)
> \015\012 (CRLF) \012\012 (should *not* work)
Actually, it's this:
File contents Serial port output
\012 (LF) \015\012
\015 (CR) \015
\015\012 (CRLF) \015\012\012
since onlcr turns LF to CRLF.