mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parent
adf6c0928d
commit
7f2123bc08
1 changed files with 1 additions and 1 deletions
|
@ -383,7 +383,7 @@ class Reline::Windows
|
||||||
return unless csbi = get_console_screen_buffer_info
|
return unless csbi = get_console_screen_buffer_info
|
||||||
buffer_width = csbi[0, 2].unpack1('S')
|
buffer_width = csbi[0, 2].unpack1('S')
|
||||||
attributes = csbi[8, 2].unpack1('S')
|
attributes = csbi[8, 2].unpack1('S')
|
||||||
_window_left, window_top, _window_right, window_bottom = *csbi[10,8].unpack('S*')
|
_window_left, window_top, _window_right, window_bottom = *csbi[10, 8].unpack('S*')
|
||||||
fill_length = buffer_width * (window_bottom - window_top + 1)
|
fill_length = buffer_width * (window_bottom - window_top + 1)
|
||||||
screen_topleft = window_top * 65536
|
screen_topleft = window_top * 65536
|
||||||
written = 0.chr * 4
|
written = 0.chr * 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue