diff options
author | hobbs <hobbs@noemail.net> | 2005-11-30 01:22:55 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2005-11-30 01:22:55 (GMT) |
commit | 64550535e3df2a0cd9f236d144f332ab838d8f0a (patch) | |
tree | 59de9d3e00394bf5f4a85bbccc4d0e25cb2206a1 | |
parent | fe5085c12378d085f420f93647dbdb4741ffa8aa (diff) | |
download | tk-64550535e3df2a0cd9f236d144f332ab838d8f0a.zip tk-64550535e3df2a0cd9f236d144f332ab838d8f0a.tar.gz tk-64550535e3df2a0cd9f236d144f332ab838d8f0a.tar.bz2 |
* library/console.tcl (::tk::ConsoleInit): improve work-around to
avoid '% ' from tclMain.c [Bug 1252259]
FossilOrigin-Name: a83f3fb57015303ab17623cc766fbbdf91acfd6c
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | library/console.tcl | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2005-11-29 Jeff Hobbs <jeffh@ActiveState.com> + * library/console.tcl (::tk::ConsoleInit): improve work-around to + avoid '% ' from tclMain.c [Bug 1252259] + * macosx/tkMacOSXXStubs.c (TkpOpenDisplay, TkMacOSXDisplayChanged): * macosx/tkMacOSXCarbonEvents.c (TkMacOSXInitCarbonEvents): * macosx/tkMacOSXWindowEvent.c (TkMacOSXProcessApplicationEvent): diff --git a/library/console.tcl b/library/console.tcl index 041423f..fba7fec 100644 --- a/library/console.tcl +++ b/library/console.tcl @@ -4,7 +4,7 @@ # can be used by non-unix systems that do not have built-in support # for shells. # -# RCS: @(#) $Id: console.tcl,v 1.22.2.3 2005/05/31 04:58:00 hobbs Exp $ +# RCS: @(#) $Id: console.tcl,v 1.22.2.4 2005/11/30 01:22:55 hobbs Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. @@ -153,7 +153,9 @@ proc ::tk::ConsoleInit {} { if {$tcl_platform(platform) eq "windows"} { # Subtle work-around to erase the '% ' that tclMain.c prints out - after idle [list $con delete 1.0 output] + after idle [subst -nocommand { + if {[$con get 1.0 output] eq "% "} { $con delete 1.0 output } + }] } } |