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: jon wackley
Subject: RE: getch always returns -1 after shell
Date: Tue, 28 Jan 2003 19:25:20 -0500

Hi All,

Thank you everyone for your help.  Having no debugger I was forced to
instrument the executable piece by piece.  This was painfull.  Though the
practice was banished some time ago, I tracked down a piece of code that was
executing scripts asynchronous *SIGH*.  Executed the scripts synchronously
and everything worked.

BTW - did not need def_prog_mode after all.  Just to let you know I found
the def_prog_mode in a shell example somewhere in the documentation, if it
really isn't required then references to it should be removed.

Thanks again,
jonw

-----Original Message-----
From: Thomas Dickey [mailto:address@hidden
Sent: January 28, 2003 5:51 AM
To: Tim Mooney
Cc: jon wackley; address@hidden
Subject: Re: getch always returns -1 after shell


On Mon, Jan 27, 2003 at 09:50:13PM -0600, Tim Mooney wrote:
> In regard to: getch always returns -1 after shell, jon wackley said
(at...:
>
> >Hi,
> >
> >I have a problem with ncurses-5.3, I use the following pseudo-code;
> >
> >   def_prog_mode();
> >   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 "always" is a little unclear - "always" on the first occurrence, or
even on repeated calls?





reply via email to

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