diff options
author | hobbs <hobbs@noemail.net> | 2000-04-21 04:06:37 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2000-04-21 04:06:37 (GMT) |
commit | 72cb9469e20e19baabab466ae4052bc550b904d5 (patch) | |
tree | 9a5509510060aca06755a1b8db7f17a2af73d6f4 | |
parent | acf915fd49ba81ed1085a250a2e67b2adb94768b (diff) | |
download | tk-72cb9469e20e19baabab466ae4052bc550b904d5.zip tk-72cb9469e20e19baabab466ae4052bc550b904d5.tar.gz tk-72cb9469e20e19baabab466ae4052bc550b904d5.tar.bz2 |
* library/console.tcl: made console use systemfixed font on Win
FossilOrigin-Name: f835975ba6c6369b4ea42b32b64cca7bd93ab12a
-rw-r--r-- | library/console.tcl | 13 |
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" |