Alex Rivera | Logout

Send data over telnet without pressing enter

Asked 2010-12-26T00:45:49.370
16

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...

Edit
Report

1 Answer

1

My advise is to use netcat for that purposes. It can behave like instant messenger, without pressing enter. searching for netcat tutorial returns tons of videos.

answered 2010-12-26T01:07:37.077

Your Answer