From b161502be2acfffb1883b32271462e500c832d5c Mon Sep 17 00:00:00 2001 From: hobbs Date: Thu, 18 Oct 2001 20:26:42 +0000 Subject: * library/console.tcl (ConsoleOutput): fixed undefined widget argument. --- ChangeLog | 5 +++++ library/console.tcl | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b927ca1..414c4a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-10-18 Jeff Hobbs + + * library/console.tcl (ConsoleOutput): fixed undefined widget + argument. + 2001-10-16 Jeff Hobbs * library/xmfbox.tcl: fixed filtering in motif file dialog. diff --git a/library/console.tcl b/library/console.tcl index 6375648..a9ad8a0 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.13 2001/10/09 23:11:02 hobbs Exp $ +# RCS: @(#) $Id: console.tcl,v 1.14 2001/10/18 20:26:42 hobbs Exp $ # # Copyright (c) 1995-1997 Sun Microsystems, Inc. # Copyright (c) 1998-2000 Ajuba Solutions. @@ -548,9 +548,10 @@ proc ::tk::ConsoleInsert {w s} { # string - The string to be displayed. proc ::tk::ConsoleOutput {dest string} { - .console insert output $string $dest + set w .console + $w insert output $string $dest ::tk::console::ConstrainBuffer $w $::tk::console::maxLines - .console see insert + $w see insert } # ::tk::ConsoleExit -- -- cgit v0.12