[GRASS5] [bug #2776] (grass) d.text when interactive should say where to enter text

Michael Barton michael.barton at asu.edu
Sun Dec 5 23:01:43 EST 2004


I tried this and you were right originally. When I run it from the GUI using
the term procedure, it opens an xterm but also goes to the tcltk dialog
which gets us nowhere (i.e., the xterm accepts no input). I also tried it
from the command line. The only way to bypass the tcltk dialog is to follow
d.text by an argument (e.g., -b or size=5). Then it will go to an
interactive xterm.

It seems like the only way to make it useable from the GUI is either to add
add a standard input box as you did in d.text.freetype (but you said this
was problematic) or to make a script that will accept user input, then run
d.text as a command-line command.

Michael


On 12/5/04 6:53 PM, "Hamish" <hamish_nospam at yahoo.com> wrote:

>>> Perhaps d.text should be removed from the d.m menu until we have a
>>> solution. (as it won't actually do anything)
> 
> 
> sorry, I was mistaken, d.text will work from a xterm:
> 
> if (isatty(0))
>     fprintf (stdout,"\nPlease enter text instructions.  Enter EOF (ctrl-d) on
> last line to quit\n") ;
> 
> 
> so d.m should launch it that way.
> 
> 
> 
> Hamish

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ  85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>




More information about the grass-dev mailing list