bug-ncurses
[Top][All Lists]
Advanced

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

Re: ncurses and blocking?


From: Thomas Dickey
Subject: Re: ncurses and blocking?
Date: Mon, 8 Jul 2002 19:00:06 -0400
User-agent: Mutt/1.2.5i

On Tue, Jul 09, 2002 at 12:43:29AM +0200, Simon Richter wrote:
> Hi,
> 
> I'm currently writing a program that has a number of input and output
> streams operating at various speeds (sockets, local files, NFS files, AFS
> files, a Tivoli storage server, ...) that should also get an ncurses
> interface. While I realize that ncurses performing blocking I/O will not
> be a major problem in most cases, it might be that the controlling tty is
> on a slow link (ssh over a modem) while the network around the box running
> the program is saturated. Is there a way to tell ncurses to do nonblocking
> I/O, probably (though not required) with the option of discarding output
> that has not been written to the tty yet but has already been overwritten
> on stdscr?

nodelay, etc:
 
curs_inopts(3X)                                   curs_inopts(3X)


NAME
       cbreak, nocbreak, echo, noecho, halfdelay, intrflush, key-
       pad, meta,  nodelay,  notimeout,  raw,  noraw,  noqiflush,
       qiflush,  timeout,  wtimeout,  typeahead  -  curses  input
       options

However, wgetch() will refresh before it determines that there is no input.

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net



reply via email to

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