Subject: Re: Fonts for wish console in WinNT - DN [1]


Bryan Oakley <oakley@channelpoint.com> - 30 Mar 1999 - comp.lang.tcl

 Peter Prinz wrote:
 >
 > Hi there !
 >
 > I am usign Tcl 8.x / Tk under WinNT.
 > Can anybody tell me how to change the font in the
 > console opend by wish ?
 >
 > Peter

 I put something like this in my ~/wishrc.tcl file:

     console eval {
         .console configure -font {-family {MS Sans Serif} -size 10}
     }

 This isn't documented anywhere that I can see, and I doubt it is 100%
 guaranteed to work for future versions of tcl, but it seems to work well
 enough for me. It would be nice if the console command were extended so
 one could do, for example, "console configure -font {-size 10}
 -background black -foreground white" or whatever. It would be darn easy
 to implement since the console is just a text widget with some fancy key
 bindings.

 I use a similar technique (console eval ...) to add a handy dandy
 toolbar to the console, which gives me a pulldown list of my projects.
 Selecting a project puts me in the right directory and defines some
 useful buttons. Quite handy.

 --
 Bryan Oakley            mailto:oakley@channelpoint.com
 ChannelPoint, Inc.        http://purl.oclc.org/net/oakley

Last modified
1999-09-27

(195.108.246.50)

Note: you are looking at
the snapshot of an old wiki
- much of this information
is likely to be very outdated