bug-ncurses
[Top][All Lists]
Advanced

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

Re: getch always returns -1 after shell


From: Thomas Dickey
Subject: Re: getch always returns -1 after shell
Date: Mon, 27 Jan 2003 19:56:10 -0500
User-agent: Mutt/1.3.27i

On Mon, Jan 27, 2003 at 08:13:34PM -0500, jon wackley wrote:
> Hi,
> 
> I have a problem with ncurses-5.3, I use the following pseudo-code;
> 
>   def_prog_mode();

The def_prog_mode call seems redundant, but I don't see anything offhand
that would be a problem.  Perhaps you're using some settings such as
nodelay() which might be not working as intended?

>   endwin();
>   /* spawn some shell processing */
>   refresh();
> 
> Everything seems fine until the next execution of getch().  getch always 
> returns -1, (ERR).  Is there something special I have to do to ensure 
> the input state is consistent before and after spawning shell commands? 
> Any suggestions where to look to track down this problem?  The term is a 
> "sun-cmd".
> 
> Thanks,
> jonw
> 
> 
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

-- 
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]