You are here: Re: How to get a keypress? « PHP Programming Language « IT news, forums, messages
Re: How to get a keypress?

Posted by Norman Peelman on 09/14/07 23:21

Lars Eighner wrote:
> 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?
>

If you're on Windows, you can't. You have to press the enter key to
'send' the input. Unix/Linux it's supposed to work as expected. Haven't
tried it yet though.

Norm

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация