[ruby-cvs:78727] b39d5da974 (master): [ruby/io-console] Use TCSANOW to prevent from discarding the input buffer
"Yusuke Endoh" <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.cvs |
|---|---|
| Message-ID | <[email protected]> |
Yusuke Endoh 2019-12-14 19:15:02 +0900 (Sat, 14 Dec 2019)
New Revision: b39d5da974
https://github.com/ruby/ruby/commit/b39d5da974
Log:
[ruby/io-console] Use TCSANOW to prevent from discarding the input buffer
TCSAFLUSH discards the buffer read before the mode change, which makes
IRB ignore the buffer input immediately after invoked. TCSANOW
preserves the buffer.
https://github.com/ruby/io-console/commit/b362920182
Modified files:
ext/io/console/console.c