Afficher un message
Vieux 15/09/2007, 00h24   #1
Lars Eighner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to get a keypress?

The ncurses functions are such a mess (and some of it I suspect is in
ncurses itself) that I am thinking the easiest way to write a terminal
interface is simply to write ANSI directly to the terminal.

Although the manual on the CLI refers me to readline, readline doesn't
seem provide a way to get a single key press, and so far as I can tell
doesn't provide a reference to how to get a single keypress. I reckon
some widgets would be more spiffy with keypresses instead of whole lines.

How can I get keypresses?

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 493 days to go.
What do you do when you're debranded?
  Réponse avec citation
 
Page generated in 0,04358 seconds with 9 queries