cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get a character on telnet API

JLim.13
Associate

Hi,

I've been coding for telnet console using ​API KEIL offer.I'm working on Telnet_Server_UIF.CPP which was created by example installer of KEIL.

i can get strings via netTELNETs_ProcessCommand call back. this only gives me strings after hitting enter key.but i want to get a charater as soon as a user hit a character on keyboard.

i've tried to find the way but no luck so far.

help me...

thx

1 REPLY 1
Piranha
Chief II

http://pcmicro.com/netfoss/telnet.html

The echo option is enabled, usually by the server, to indicate that the server will echo every character it receives. A combination of "suppress go ahead" and "echo" is called character at a time mode meaning that each character is separately transmitted and echoed.

Therefore server must send the following commands:

255 251 1 - IAC WILL ECHO

255 251 3 - IAC WILL SUPPRESS-GO-AHEAD