1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix reversed row and column get_screen_size on Windows

This commit is contained in:
aycabta 2019-05-28 05:10:49 +09:00
parent f6b62d8fe7
commit 74c88e7cda

View file

@ -114,7 +114,7 @@ class Reline::Windows
def self.get_screen_size
csbi = 0.chr * 24
@@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi)
csbi[0, 4].unpack('SS')
csbi[0, 4].unpack('SS').reverse
end
def self.cursor_pos