Method: Ncurses.nonblocking_getch

Defined in:
lib/sup/buffer.rb

.nonblocking_getchObject

magically, this stuff seems to work now. i could swear it didn’t before. hm.



30
31
32
33
34
35
36
# File 'lib/sup/buffer.rb', line 30

def nonblocking_getch
  if IO.select([$stdin], nil, nil, 1)
    Ncurses.getch
  else
    nil
  end
end