[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getch() waits even nodelay is set
From: |
Fangtu Qiu |
Subject: |
Re: getch() waits even nodelay is set |
Date: |
Fri, 19 Jul 2002 23:53:34 -0400 (EDT) |
Hi, Thomas,
The problem appears after I upgraded my linux to RedHat 7.3 from RedHat
7.2. If you only have 7.2, you may not be able to see the problem.
The following code will wait if compiled with g++. It won't wait if
compiled by gcc.
===== cut here =====
#include <curses.h>
int main()
{
WINDOW * pwin = initscr();
nodelay(pwin, TRUE);
getch();
endwin();
}
===== cut here =====
Regards,
Fangtu Qiu
On Fri, 19 Jul 2002, Thomas E. Dickey wrote:
> On Fri, 19 Jul 2002, Fangtu Qiu wrote:
>
> > Bug description:
> >
> > The getch() function waits for the input when nodelay is set.
> >
> > Bug or new behaviour? Or I missed something?
>
> I'm not sure what you are seeing - I use nodelay in several of the test
> programs. (Will check later, in case it's a Redhat bug - I have a 7.2
> for testing those).
>
> > Platform tested: RedHat linux 7.3
> >
> > ncurses version: 5.2-26 from RedHat 7.3 (getch WAITS when nodelay is set)
> > ncurses version: 5.2-28 from RawHide (getch WAITS when nodelay is set)
> > ncurses version: 5.2-20020713 from ftp://dickey.his.com (getch WAITS when
> > nodelay is set)
> >
> > ncurses version: 5.2-12 from RedHat 7.2 (getch doesn't wait when nodelay
> > is set)
> >
> > -Fangtu
> >
> >
> >
> > _______________________________________________
> > Bug-ncurses mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/bug-ncurses
> >
>
>
- getch() waits even nodelay is set, Fangtu Qiu, 2002/07/19
- Re: getch() waits even nodelay is set, Thomas E. Dickey, 2002/07/19
- Re: getch() waits even nodelay is set,
Fangtu Qiu <=
- Re: getch() waits even nodelay is set, Thomas Dickey, 2002/07/20
- Re: getch() waits even nodelay is set, Fangtu Qiu, 2002/07/20
- Re: getch() waits even nodelay is set, Thomas Dickey, 2002/07/20
- Re: getch() waits even nodelay is set, Fangtu Qiu, 2002/07/21
- Re: getch() waits even nodelay is set, Thomas Dickey, 2002/07/21