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: Mon, 27 Jan 2003 21:57:29 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01


Hi,

This unfortunately did nothing.  It does seem that something is wrong with stdin.  Is there a reset command or something similar?

Thanks,
jonw

jon wackley wrote:

Hi Thomas,

Yes I am using nodelay(stdscr, FALSE) to try to correct this problem.  This seems to have no effect.  I'm currently looking to determine if stdin is being closed or altered by the shell processing.  I duped the stdio handles to /dev/null to see if this will change anything.  If you have any suggestions further to this please feel free to let me know.

Thanks,
jonw

Thomas Dickey wrote:
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
    

  


_______________________________________________ Bug-ncurses mailing list address@hidden http://mail.gnu.org/mailman/listinfo/bug-ncurses


reply via email to

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