1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/reline
Lars Kanis d1166c6d39 Reline: Use a more robust detection of MinTTY
The previous detection per get_screen_size fails when stdout is passed
to a pipe. That is the case when running ruby tests in parallel ("-j" switch).
In this case Reline believes that it's running on MinTTY and the tests
are running with ANSI IOGate instead of the Windows adapter on MINGW.
So parallel test results were different to that of a single process.
This commit fixes these differencies.

The code is taken from git sources and translated to ruby.
NtQueryObject() is replaced by GetFileInformationByHandleEx(), because
NtQueryObject() is undocumented and is more difficult to use:
  c5a03b1e29/compat/winansi.c (L558)
2020-01-21 21:26:58 +09:00
..
key_actor The delete-char-or-list shows completed list when called at end of line 2019-12-24 18:34:43 +09:00
unicode Update Unicode URL to 12.1.0 2019-08-06 20:03:23 +09:00
ansi.rb Introduce an abstracted structure about the encoding of Reline 2020-01-14 15:40:38 +09:00
config.rb Support history-size in .inputrc correctly 2020-01-06 21:50:48 +09:00
general_io.rb Introduce an abstracted structure about the encoding of Reline 2020-01-14 15:40:38 +09:00
history.rb Introduce an abstracted structure about the encoding of Reline 2020-01-14 15:40:38 +09:00
key_actor.rb Add Reline as a fallback library for Readline 2019-04-30 11:44:20 +09:00
key_stroke.rb Suppress "shadowing outer local variable" warning in 2.5 2019-11-08 16:18:36 +09:00
kill_ring.rb Add Reline as a fallback library for Readline 2019-04-30 11:44:20 +09:00
line_editor.rb [ruby/reline] Implement vi_change_meta 2020-01-21 09:52:32 +09:00
reline.gemspec [ruby/reline] Use IO#raw to read one byte 2019-12-23 02:11:22 +09:00
unicode.rb Implement transpose-words 2019-06-04 07:23:36 +09:00
version.rb [ruby/reline] Version 0.1.2 2019-12-25 18:47:47 +09:00
windows.rb Reline: Use a more robust detection of MinTTY 2020-01-21 21:26:58 +09:00