Subject: Re: staircase effect on login
Date: Thu, 7 Mar 1996 22:38:39 GMT
>I'm not an expert in Linux, so I suppose I did any silly error.
>We have Linux installed on two computer linked by serial line (null
>modem or tele line)
>When PC 'A' log in the shell of PC 'B', everithing echoed in PC 'A'
>with a line feed and no CR (carriage return).
>In PC'B's virtual console logges as usual.
>The problem must be in PC 'B' since the same happens
>when we change PC 'A' .
computer opeating systems. Unix based systems terminate each line with
a
single <new-line> character. MSDOS and some other systems use a
combination <carriage-return, new-line> pair of characters to terminate
a
line. Stated another way, in MSDOS, the <carriage-return> simple
returns
the cursor to the beginning of the current line while <new-line>
advances
the cursor one line with character position the same distance from the
beginning of the line. In Unix systems, the <new-line> infers a
carriage
return.
How your system responds is defined in the 'struct termios' associated
with
the current terminal be it a video console, a printer or a serial port.
The specific flags you want to change are 'OPOST | ONLCR'. I lost the
thought stream in your question but I suspect that you need to add these
flags to the '/etc/gettydefs' of PC A. The counter part is 'IGNCR'.
Refer to manual pages 'stty(1)' and 'termios(7)'. I have prepared a
blurb
concering the 'struct termios'. If you would like a copy, I can e-mail
a
copy.
vern
--
Vernon C. Hoxie
scicom!zebra!vern
3975 W. 29th Ave.
Denver, Colo., 80212 uucp: 303-455-2670 voice:
303-477-1780