[GRASS5] v.digit menu entry print problem

Markus Neteler neteler at geog.uni-hannover.de
Wed Apr 4 04:29:44 EDT 2001


On Wed, Apr 04, 2001 at 05:21:38AM +0100, Glynn Clements wrote:
> 
> 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.


Hi Glynn,

thanks for your notes. It seems that the fellow had a local
problem (so that's matching with above), I just received another
mail that he has it running now. Another person reported that
the problem occurs occasionally, maybe a local problem as well.

Good luck for us :-)

 Markus

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