-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net_telnet: Improve terminal compatibility.
* For some reason, even after sending IAC DO NAWS and receiving IAC WILL NAWS from the client, SyncTERM does not proceed with IAC SB NAWS to actually send us its terminal dimensions, which led us to unnecessarily falling back to prompting for dimensions. Work around this by sending another IAC DO NAWS in this case, which makes SyncTERM send them over. * Due to the above change, the received terminal type as read seems to include 3 non-printable characters at the end. * Properly handle the case when multiple commands are available in a single call to telnet_read_command by parsing them one at a time. * Request terminal type before the terminal dimensions. SyncTERM offers to send dimensions when we get the terminal type, so asking for the terminal type first slightly cuts down on the chattiness of the handshake. * Fix TERM for Windows Command Prompt.
- Loading branch information
1 parent
206e99c
commit b2c239d
Showing
2 changed files
with
101 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters