Method: TTY::Reader::WinConsole#get_char_non_blocking

Defined in:
lib/tty/reader/win_console.rb

#get_char_non_blockingObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Get the char for last key pressed, or if no keypress return nil



64
65
66
# File 'lib/tty/reader/win_console.rb', line 64

def get_char_non_blocking
  input_ready? ? get_char_blocking : nil
end