Method: Reline::Windows.erase_after_cursor

Defined in:
lib/reline/windows.rb

.erase_after_cursorObject



198
199
200
201
202
203
204
# File 'lib/reline/windows.rb', line 198

def self.erase_after_cursor
  csbi = 0.chr * 24
  @@GetConsoleScreenBufferInfo.call(@@hConsoleHandle, csbi)
  cursor = csbi[4, 4].unpack('L').first
  written = 0.chr * 4
  @@FillConsoleOutputCharacter.call(@@hConsoleHandle, 0x20, get_screen_size.last - cursor_pos.x, cursor, written)
end