summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorhobbs <hobbs>2005-05-30 23:41:01 (GMT)
committerhobbs <hobbs>2005-05-30 23:41:01 (GMT)
commit2e125a43be3a47e5fd7d196c57acb03bc129871e (patch)
treea142e605fa6d96fc3f350d7cb4f1b12fea2d6ebd /library
parent54786d28ef0d7d46a878c994a47e8336f783973d (diff)
downloadtk-2e125a43be3a47e5fd7d196c57acb03bc129871e.zip
tk-2e125a43be3a47e5fd7d196c57acb03bc129871e.tar.gz
tk-2e125a43be3a47e5fd7d196c57acb03bc129871e.tar.bz2
* library/console.tcl (::tk::ConsoleInit): print out first prompt
and swallow the extra "% " that comes once from Tcl on Windows.
Diffstat (limited to 'library')
-rw-r--r--library/console.tcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 1d0ff03..1462175 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.26 2004/11/17 22:16:44 hobbs Exp $
+# RCS: @(#) $Id: console.tcl,v 1.27 2005/05/30 23:41:01 hobbs Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -136,6 +136,12 @@ proc ::tk::ConsoleInit {} {
tk::TextSetCursor $con end
$con mark set promptEnd insert
$con mark gravity promptEnd left
+
+ ConsolePrompt
+ 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]
+ }
}
# ::tk::ConsoleSource --