diff options
author | hobbs <hobbs> | 2005-05-30 23:40:20 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2005-05-30 23:40:20 (GMT) |
commit | 5db6ce30535f1bf160e4d191bf2c0b0316714930 (patch) | |
tree | e151deae4a4a50190a6f3626688fbfb2b7be62a3 /library/console.tcl | |
parent | d0e3916a80fb9b1e26c29121e4333cf7693ad6f2 (diff) | |
download | tk-5db6ce30535f1bf160e4d191bf2c0b0316714930.zip tk-5db6ce30535f1bf160e4d191bf2c0b0316714930.tar.gz tk-5db6ce30535f1bf160e4d191bf2c0b0316714930.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/console.tcl')
-rw-r--r-- | library/console.tcl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/library/console.tcl b/library/console.tcl index a4fcbbc..0f4e983 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.1 2004/11/17 22:18:28 hobbs Exp $ +# RCS: @(#) $Id: console.tcl,v 1.22.2.2 2005/05/30 23:40:33 hobbs Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. @@ -137,6 +137,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 -- |