[GRASS-dev] Re: [GRASS GIS] #606: WinGRASS GIS.m: broken newlines in output window

GRASS GIS trac at osgeo.org
Mon Jul 19 17:18:45 EDT 2010


#606: WinGRASS GIS.m: broken newlines in output window
----------------------------+-----------------------------------------------
 Reporter:  hamish          |       Owner:  grass-dev@…              
     Type:  defect          |      Status:  new                      
 Priority:  major           |   Milestone:  6.4.0                    
Component:  Tcl             |     Version:  6.4.0 RCs                
 Keywords:  wingrass gis.m  |    Platform:  MSWindows XP             
      Cpu:  x86-32          |  
----------------------------+-----------------------------------------------

Comment(by hellik):

 Replying to [ticket:606 hamish]:
 > Hi,
 >
 > in wingrass gis.m output the leading newlines seem to be broken. When
 you run a command the first couple of letters seem to be hidden. When you
 resize the Output window by dragging on the corner (or if you run another
 command) the first missing letter appears next to the scissors icon, and
 the second missing letter appears at the start of the next line.
 >
 > see attached screenshot.
 >
 > I assume it is because gtcltk/gronsole.tcl hardcodes "\n" in a number of
 places (e.g. line 231) which needs to be "\r\n" on wingrass.
 >
 > maybe something like this at the beginning of gronsole.tcl?
 > {{{
 > if { $mingw == "1" } {
 >    set newline "\r\n"
 > } else {
 >    set newline "\n"
 > }
 > }}}
 >
 > and then use $newline instead of "\n"?
 >
 >
 >
 > Hamish

 tested with WinGRASS-6.4.SVN-r42833-1-Setup.exe in a WinVista32-box.

 it's still valid.

 Helmut

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/606#comment:6>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list