Skip to main content
JLim.13
Visitor II
August 14, 2019
Question

how can i get a character on telnet API

  • August 14, 2019
  • 1 reply
  • 824 views

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

This topic has been closed for replies.

1 reply

Piranha
Principal III
August 14, 2019

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