[GRASS-dev] Re: [GRASS GIS] #127: WinGRASS Tcl/Tk GUI - Text formatting error in Output window

Michael Barton michael.barton at asu.edu
Thu May 15 11:12:10 EDT 2008




On 5/15/08 3:19 AM, "GRASS GIS" <trac at osgeo.org> wrote:

> #127: WinGRASS Tcl/Tk GUI - Text formatting error in Output window
> -------------------------+--------------------------------------------------
>   Reporter:  4everskiff  |       Owner:  grass-dev at lists.osgeo.org
>       Type:  defect      |      Status:  new
>   Priority:  minor       |   Milestone:  6.4.0
>  Component:  Tcl         |     Version:  6.3.0
> Resolution:              |    Keywords:  Text output, winGRASS
> -------------------------+--------------------------------------------------
> Changes (by marcopx):
> 
>   * version:  6.3.0 RCs => 6.3.0
> 
> Comment:
> 
>  Replying to [comment:5 cmbarton]:
>> I've committed a change to gronsole.tcl that I hope fixes this. It is
>  not a problem on the Mac, and maybe only on Windows. I moved the linefeed
>  for command output text from after the text line to before the text line.
>  I'm assuming that Windows will read "\n" as a line feed. Could someone
>  please test in Windows. I'm not changing this ticket to resolved yet to
>  see if it actually works.
>> 
>> Michael
> 
>  Very good.
>  It seems that I definetly need to build upon the SVN trunk. It will take 3
>  hours or more here :-(
>  BTW, the windows (working) code for the Carriage Return & Linefeed is
>  \r\n, but probably the \n suffices

This may be the underlying cause of the error in gronsole.tcl. I don't know
how /r is read in *nix. I'm also not sure if I can get away with replacing
"/n" with a variable so that I can make it vary by platform. E.g.,

If {$mingw == 1} {set rlf {/r/n}} else {set rlf {/n}}


Michael

> 
>  Marco

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton




More information about the grass-dev mailing list