sup-heliotrope / ncursesw-ruby

Ruby bindings to the ncursesw library (modified from: http://ncurses-ruby.berlios.de/)
GNU Lesser General Public License v2.1
22 stars 13 forks source link

getch acts weirdly (cursor keeps moving, like it's running inside a loop) #29

Open sam113101 opened 9 years ago

mistermatze commented 9 years ago

Same problem here. After a call to getch the cursor starts to constantly move down line by line.

Here is a program to reproduce the behaviour:

require "ncursesw"

Ncurses.initscr
Ncurses.addstr("Cursor starts to move down!")
Ncurses.getch # Wait for a keypress to quit
Ncurses.endwin

System:

iwanttobeleaf commented 4 years ago

adding Ncurses.cbreak after Ncurses.initscr

will stop this from happening