LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 01-28-2013, 11:30 AM   #1
errigour
Member
 
Registered: May 2009
Posts: 271

Rep: Reputation: 5
C programming ncurses Input question


Ok here is the game that i'm working on:
http://o0oo0.net16.net/shared/main.version.0.02.tar.gz

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 http://o0oo0.net16.net/shared/

Last edited by errigour; 01-28-2013 at 11:55 AM.
 
Old 01-28-2013, 04:05 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 1,528

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.
 
  


Reply


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 05:26 AM.

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