mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
![]() 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:
|
||
---|---|---|
.. | ||
key_actor | ||
unicode | ||
ansi.rb | ||
config.rb | ||
general_io.rb | ||
history.rb | ||
key_actor.rb | ||
key_stroke.rb | ||
kill_ring.rb | ||
line_editor.rb | ||
reline.gemspec | ||
unicode.rb | ||
version.rb | ||
windows.rb |