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:
parent
f6b62d8fe7
commit
74c88e7cda
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue