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

GRASS GIS trac at osgeo.org
Sun May 17 03:30:41 EDT 2009


#606: WinGRASS GIS.m: broken newlines in output window
----------------------------+-----------------------------------------------
 Reporter:  hamish          |       Owner:  grass-dev at lists.osgeo.org
     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          |  
----------------------------+-----------------------------------------------
 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

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


More information about the grass-dev mailing list