summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-04-21 04:06:37 (GMT)
committerhobbs <hobbs>2000-04-21 04:06:37 (GMT)
commit56cd1f51d06e6eedd414df98bd8e0dbcd7226ecb (patch)
tree9a5509510060aca06755a1b8db7f17a2af73d6f4 /library/console.tcl
parent19a72e7d1e80f9973837ab01c07ee48dd09c703d (diff)
downloadtk-56cd1f51d06e6eedd414df98bd8e0dbcd7226ecb.zip
tk-56cd1f51d06e6eedd414df98bd8e0dbcd7226ecb.tar.gz
tk-56cd1f51d06e6eedd414df98bd8e0dbcd7226ecb.tar.bz2
* library/console.tcl: made console use systemfixed font on Win
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl13
1 files changed, 9 insertions, 4 deletions
diff --git a/library/console.tcl b/library/console.tcl
index f8ad8ea..d6a66ea 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.7 1999/09/02 17:02:52 hobbs Exp $
+# RCS: @(#) $Id: console.tcl,v 1.8 2000/04/21 04:06:37 hobbs Exp $
#
# Copyright (c) 1998-1999 Scriptics Corp.
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
@@ -76,8 +76,13 @@ proc tkConsoleInit {} {
scrollbar .sb -command ".console yview"
pack .sb -side right -fill both
pack .console -fill both -expand 1 -side left
- if {[string equal $tcl_platform(platform) "macintosh"]} {
- .console configure -font {Monaco 9 normal} -highlightthickness 0
+ switch -exact $tcl_platform(platform) {
+ "macintosh" {
+ .console configure -font {Monaco 9 normal} -highlightthickness 0
+ }
+ "windows" {
+ .console configure -font systemfixed
+ }
}
tkConsoleBind .console
@@ -467,7 +472,7 @@ proc tkConsoleExit {} {
proc tkConsoleAbout {} {
global tk_patchLevel
tk_messageBox -type ok -message "Tcl for Windows
-Copyright \251 1999 Scriptics Corporation
+Copyright \251 2000 Scriptics Corporation
Tcl [info patchlevel]
Tk $tk_patchLevel"