telnet escape charater
Dan Bernstein
brnstnd at kramden.acf.nyu.edu
Mon Aug 20 00:14:51 AEST 1990
In article <3844 at auspex.auspex.com> guy at auspex.auspex.com (Guy Harris) writes:
> > You might try defining it as something that (should) never come through..
> >like ctrl-_ or ctrl-` ...
> Or try "set escape off", if your "telnet" manual page says it works.
> (SunOS 4.0.3's does, so does 4.3-tahoe's, 4.3BSD's may too.)
Or translate the escape character to something else. You'll probably
have to stick telnet under pty to do this: tr '^]' '^X' | pty telnet ...
Even better, double the escape character, so that it comes through
correctly on the other side. (Design flaw: there's no way to do this
without getting a telnet> in the middle of your output. Implementation
flaw: telnet has some race conditions, so don't feed it escape
characters too quickly.)
---Dan
More information about the Comp.unix.questions
mailing list