Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!yale!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.questions Subject: Re: telnet escape charater Message-ID: <3289:Aug1914:14:5190@kramden.acf.nyu.edu> Date: 19 Aug 90 14:14:51 GMT References: <1990Aug6.135714.7732@world.std.com> <3844@auspex.auspex.com> Sender: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 16 In article <3844@auspex.auspex.com> guy@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