bug-ncurses
[Top][All Lists]
Advanced

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

Re: Multi-threaded output


From: Thomas Dickey
Subject: Re: Multi-threaded output
Date: Mon, 25 Oct 2004 21:01:56 -0400 (EDT)

On Mon, 25 Oct 2004, Steven Seeger wrote:

> The solution to my problem did lie with a fix around getch, just as you
> suggested. I used select to wait for stdin, and then when a key comes in I
> can then use curses_safe() around wgetch on my front-most window without
> stalling the updating threads, as wgetch returns almost immediately. If I
> tried to use the macro around it before everything would wait for keyboard
> input. I put a 50ms timeout on select in case the front window changes,
> though in the program I'm making this requires a function key press.
>
> Thanks again!

no problem.

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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