bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nCurses input from keypad and keyboard while updating the display


From: willhbca
Subject: Re: nCurses input from keypad and keyboard while updating the display
Date: Mon, 4 Jun 2012 13:05:54 -0700 (PDT)

>Essentially you get to write a function like getstr.
>I did this in
>       http://invisible-island.net/dialog/dialog.html
>(see inputstr.c - which is probably more complicated than you had in
>mind since most of it is dealing with wide-characters... - but the
>actual buffer management is not that complex).
>
>dialog uses wtimeout rather than nodelay+napms
>
>-- 
>Thomas E. Dickey <address@hidden>
>http://invisible-island.net
>ftp://invisible-island.net

Thomas,

Too much for me. It is way complicated for what I needed. I ended up using
the getch with timeout. When a character was entered (not a function key),
the update was stopped, the last character was put back on the command line
and used getstr to obtain the entire entered command. The screen does not
update when data entry is occurring, but this is acceptable. Thanks.

Will
-- 
View this message in context: 
http://old.nabble.com/nCurses-input-from-keypad-and-keyboard-while-updating-the-display-tp33947901p33960289.html
Sent from the Gnu - Ncurses mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]