[GRASS5] v.digit menu entry print problem
Glynn Clements
glynn.clements at virgin.net
Wed Apr 4 00:21:38 EDT 2001
Markus Neteler wrote:
> a small problem was reported with v.digit:
> If you hit "Q" to quit the module, the message
>
> "Leave digit [n]"
> does not appear on some systems.
>
> I think it is a bug with curses_yes_no_default:
> src/mapdev/v.digit
> menus.c: if (curses_yes_no_default (2, "Leave digit? ", 0))
>
> similar to the stdout/fflush thing. However, I am not sure
> how to force such a fflush there.
>
> The curses_yes_no_default() is written in dig_curses.c using Write_info()
> also there.
I don't think that this is an fflush issue.
Write_info() calls _Write_info() followed by wrefresh(INFO_WIN). If
wrefresh() doesn't result in the text being displayed, then it appears
that curses is broken.
In any case, the call to Write_info() in curses_yes_no_default() is
immediately followed by a call to Get_curses_text(), which in turn
calls wgetch(). Reading from any stream which is associated with a
terminal is supposed to flush any output streams. If this doesn't
happen, then the C library is broken.
--
Glynn Clements <glynn.clements at virgin.net>
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'
More information about the grass-dev
mailing list