Re: Character mode for telnet
On Fri, Jan 09, 2009 at 10:15:51PM -0800, Marc Shapiro wrote:
> Ken Irving wrote:
>> On Fri, Jan 09, 2009 at 08:13:32PM -0800, Marc Shapiro wrote:
>>
>>> I know that, after I connect with telnet I can got to command mode
>>> and enter 'mode char' to get into character mode. Is there any way
>>> to have telnet start up in character mode? I am trying to control a
>>> robot through a wireless connection and I need to be in character
>>> mode for it to work.
>>
>> I tried and failed to find a way to do this, and just
>> use 'm c' after starting telnet ('m line' to go back to
>> line mode). You might try netcat (nc) as an alternative
>> to telnet.
>>
>>
> I was using netcat, but it was also using line mode and the vendor for
> the robot suggeted using telnet in character mode. Is it possible to
> put netcat into character mode? Automatically, or by internal command?
I just tried it (nc) after doing 'stty raw' in the terminal, and that
looked pretty close, if perhaps too raw (e.g., ^C wouldn't halt the
session). I'm sure there are some particular terminal settings that
would give the right behavior.
Ken
--
Ken Irving
Reply to: