summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2003-10-02 23:02:36 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2003-10-02 23:02:36 (GMT)
commit11261272f24d09eb40313e65a15d06d6b54d4b37 (patch)
treed283d2ebb1b0fcac97b79ca1ef9c7e1635cd2280 /library
parent947a18fa000bba4f84ab8ec2fb1e45f0924d9e55 (diff)
downloadtk-11261272f24d09eb40313e65a15d06d6b54d4b37.zip
tk-11261272f24d09eb40313e65a15d06d6b54d4b37.tar.gz
tk-11261272f24d09eb40313e65a15d06d6b54d4b37.tar.bz2
* library/console.tcl: Avoid including the console in the list
of interpreters exposed by [winfo interps].
Diffstat (limited to 'library')
-rw-r--r--library/console.tcl5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 0ad6959..2de77c6 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.23 2003/05/19 14:44:03 dkf Exp $
+# RCS: @(#) $Id: console.tcl,v 1.24 2003/10/02 23:02:36 patthoyts Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -131,6 +131,9 @@ proc ::tk::ConsoleInit {} {
focus $con
+ # Avoid listing this console in [winfo interps]
+ if {[info command ::send] eq "::send"} {rename ::send {}}
+
wm protocol . WM_DELETE_WINDOW { wm withdraw . }
wm title . [mc "Console"]
flush stdout