-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform: find a universal solution for consuming unprocessed input
The problem that we fixed for far2l (#49) can be also reproduced with Conpty and win32-input-mode. I figured out that we can get any terminal to reply to us with a Device Status Report. So use that instead of relying on the far2l protocol. This commit also fixes a bug when consuming unprocessed input. With a slow connection, we would fail to read the terminal response, which is why we were forced to add a timeout in 08d8357. This was caused by calling NcursesInput::getEvent, which would at times interpret the response sequence as an Alt+Key combination. In order to prevent confusion when debugging, wgetch is now only called directly from NcursesInputGetter.
- Loading branch information
Showing
6 changed files
with
89 additions
and
95 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
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
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
Oops, something went wrong.