Re: scotty warning messages

Juergen Schoenwaelder (schoenw@cs.utwente.nl)
Tue, 30 Apr 1996 08:25:56 +0200

Hi!

gaskell@digicon-egr.co.uk (Phil Gaskell) wrote:

> 1) I have compiled scotty-1.2.5 with tcl7.3 & tk3.6b, on both
> SunOS 4.1.2 & HP-UX 9.0.5 with minimal hassle but I get

> Warning: Command "addinput missing"
> Warning: Command "removeinput missing"

> when running scwish. It does not cause me a problem but gives
> out annoying messages. Have I missed a compile option? Moveing
> to scotty 2.x is not a valid option for me just yet cos I need
> to convert too many scripts to tk4.0 at the moment. I will move
> over when time permits.

addinput is a patch to Tk which allowes a script to react on file
events. You have to patch Tk and to relink scwish to get addinput in
your scwish binary. If you don't need it, just remove the check for
it in the scotty initialization file.

> 2) How can I change the font used by tkerror, I came accross a
> system that does not have the default font present which makes
> life hard when debugging error messages. I cannot seem to get
> it too change with just the "option database" Is there a more
> global method.

Please take a look at the definitions of tkerror (somewhere in your
tk script library). You can always redefine tkerror so suit your
needs. A very simple one is the following:

proc tkerror {msg} {
global errorInfo
puts stderr $errorInfo
}

This one simply sends the trace-back to stderr.

Juergen