From 2038f8889841507abc88c8795373ae3d03a9bd38 Mon Sep 17 00:00:00 2001 From: hobbs Date: Sat, 22 Jun 2002 08:52:24 +0000 Subject: * library/console.tcl: corrected the defaultPrompt substitution [Bug #553207] and made Tab a default expansion key (like Escape). --- ChangeLog | 15 ++++++++++----- library/console.tcl | 12 ++++-------- 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e8173f..4aba46d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,14 @@ -2002-06-21 Don Porter +2002-06-22 Jeff Hobbs - * unix/Makefile.in: Removed unnecessary dependence of tktest - * unix/tkAppInit.c: executable on the tcltest executable on - Unix. If there are similar dependencies on other platforms, they - can probably be removed as well. [Bug 572134]. + * library/console.tcl: corrected the defaultPrompt substitution + [Bug #553207] and made Tab a default expansion key (like Escape). + +2002-06-21 Don Porter + + * unix/Makefile.in: Removed unnecessary dependence of tktest + * unix/tkAppInit.c: executable on the tcltest executable on + Unix. If there are similar dependencies on other platforms, they + can probably be removed as well. [Bug 572134]. 2002-05-20 Daniel Steffen diff --git a/library/console.tcl b/library/console.tcl index 396d7d3..8fde7c4 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.8.2.5 2002/03/01 00:03:57 dgp Exp $ +# RCS: @(#) $Id: console.tcl,v 1.8.2.6 2002/06/22 08:52:24 hobbs Exp $ # # Copyright (c) 1998-1999 Scriptics Corp. # Copyright (c) 1995-1997 Sun Microsystems, Inc. @@ -27,9 +27,9 @@ namespace eval ::tk::console { variable defaultPrompt ; # default prompt if tcl_prompt1 isn't used if {$inPlugin} { - set defaultPrompt {subst "[history nextid] % "} + set defaultPrompt {subst {[history nextid] % }} } else { - set defaultPrompt {subst "([file tail [pwd]]) [history nextid] % "} + set defaultPrompt {subst {([file tail [pwd]]) [history nextid] % }} } } @@ -309,6 +309,7 @@ proc tkConsoleBind {w} { <> <> + <> <> <> <> @@ -328,11 +329,6 @@ proc tkConsoleBind {w} { bind Console $key {} } - bind Console { - tkConsoleInsert %W \t - focus %W - break - } bind Console <> { if {[%W compare insert > promptEnd]} {::tk::console::Expand %W} } -- cgit v0.12