Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sam113101 opened this issue Aug 15, 2014 · 2 comments
Labels

Comments

@sam113101
Copy link

No description provided.

@mistermatze
Copy link

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:

  • Linux Mint 17 (64-bit)
  • Ruby 2.0.0-p481
  • gnome-terminal 3.6.2

@gauteh gauteh added the bug label Aug 16, 2014
@iwanttobeleaf
Copy link

iwanttobeleaf commented Aug 14, 2019

adding Ncurses.cbreak
after Ncurses.initscr

will stop this from happening

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants