This is the mail archive of the cygwin-patches mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 13.03.2016, Corinna Vinschen wrote:
Triggered by this change, I thought I'd revisit an old problem (https://cygwin.com/ml/cygwin-patches/2012-q3/msg00019.html),- Make buffered console characters visible to select(). Addresses: https://cygwin.com/ml/cygwin/2014-12/msg00118.html
and in fact â requested console reports now work! This makes the following ESC sequences work: ESC[c sends primary device attributes ESC[>c sends secondary device attributes ESC[6n sends cursor position report Changelog (old format): 2016-03-15 Thomas Wolff <towo@towo.net> * fhandler.h (class dev_console): Add console read-ahead buffer. (class fhandler_console): Add peek function for it (for select). * fhandler_console.cc (fhandler_console::setup): Init buffer. (fhandler_console::read): Check console read-aheader buffer. (fhandler_console::char_command): Put responses to terminal requests (device status and cursor position reports) into common console buffer (shared between CONOUT/CONIN) instead of fhandler buffer (separated). * select.cc (peek_console): Check console read-ahead buffer. Thomas
Attachment:
terminal-requests.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |