Send data over telnet without pressing enter
Posted
by
Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-12-26T00:45:49Z
Indexed on
2010/12/26
0:54 UTC
Read the original article
Hit count: 145
I've recently started messing around with Java sockets and telnet...
I want the user to be able to connect to the server, just type a letter and have it sent to the server, without pressing enter to send it. I'm sure there's no way for the server to set this up, but maybe telnet has a parameter or something which could allow this?
Maybe if I got the user to type stty cbreak
or stty raw
before running telnet, this would work? (UNIX only, I know!)
If I can get telnet to do this then it saves me having to write a special client just for this feature...
© Stack Overflow or respective owner