summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-11-30 01:24:48 (GMT)
committerhobbs <hobbs>2005-11-30 01:24:48 (GMT)
commit47b562264cdbce86619a8552e2279c5d0804a9d7 (patch)
tree1285ae2d571129d15db981dd6e2a59365f1ae6a4 /library/console.tcl
parent9a21f9394de5b1766c8dbf94b76626a32809eefe (diff)
downloadtk-47b562264cdbce86619a8552e2279c5d0804a9d7.zip
tk-47b562264cdbce86619a8552e2279c5d0804a9d7.tar.gz
tk-47b562264cdbce86619a8552e2279c5d0804a9d7.tar.bz2
* library/console.tcl (::tk::ConsoleInit): improve work-around to
avoid '% ' from tclMain.c [Bug 1252259]
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/console.tcl b/library/console.tcl
index ddd52e6..8035031 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.29 2005/07/25 09:06:01 dkf Exp $
+# RCS: @(#) $Id: console.tcl,v 1.30 2005/11/30 01:24:48 hobbs Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -152,7 +152,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 }
+ }]
}
}