At 18:11 10/10/01 +0000, Jim Jarvie wrote:
>I'm not sure the approach you describe will work - the /dev/ttyqx stuff
>is quite outdated and represents actions of the login/telnet process.
>I'd be interested to hear if it does work, however !
Yes, it does, sort of - there is an odd problem with the output (see later).
>You have a DOS based emulator which meets your purposes for the terminal
>emulation and this even runs in a DOSEMU window without problems.
>However, this program only talks to serial ports (since it is emulating a
>serial terminal).
>
>What you want to achieve is a method of this terminal emulation program
>"telnet"-ing to the server with the program.
Yes. And there are other ways of solving this - but I want to give this one
a thourough go first.
The only problem is that if I run bash at the pty end, then I get
staircasing of the output:
[colin@server dir]
[colin@server dir]
even though 'opost' and 'onlcr' set for stty. If, instead of bash, I run
'telnet localhost' at the other end, although the banner is staircased,
everything subsequently is aligned correctly. It looks like a bug in the
pty driver (when I run there is an additional layer of output processing
where NL->NLCR). I guess I need to try it on more recent kernel.
Colin
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------