Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-28-2013, 11:30 AM   #1
Registered: May 2009
Posts: 282

Rep: Reputation: 5
C programming ncurses Input question

Ok here is the game that i'm working on:

When you hold a key, the computer waits like one second or so before repeating the input, I was wondering if I can get rid of that one second pause so that if I hold left arrow down then linux will instantly start automatically filling the input buffer.

Also if you want read

Last edited by errigour; 01-28-2013 at 11:55 AM.
Old 01-28-2013, 04:05 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,222

Rep: Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561Reputation: 561
Initial delay and repeat rate are done by the keyboard. You can ask to change them with the kbdrate command, but it depends on your specific keyboard type whether or not it will listen.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] C++ api example for ncurses programming vectrum Programming 3 01-17-2012 05:30 AM
Programming in C using ncurses msaslin Programming 1 05-03-2010 10:52 AM
Programming with NCurses indienick Programming 7 07-11-2006 02:56 PM
C programming HELP, ncurses window functions naomi Programming 3 02-06-2005 05:54 AM
Parallel programming with ncurses problem StressedLemming Programming 4 02-26-2004 11:54 AM

All times are GMT -5. The time now is 02:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration