There is no official exposed framework, in part because, handling of window events is tricky and susceptible to user error and I don't want to land up supporting functionality that is hard for the user to get right. Having said that, you can see the implementation of register_hotkey as an example of how windows messages are handled. Note that is not intended for hooking arbitrary window but only messages received by a special internal use twapi window. If you are more specific about which windows...
Aldo, anything further to report on this? I'm kind of stuck as to why this occurs on your system. Could you tell me what locale you are running under?
Very strange. There have been a few thousand downloads of 9.0 and no one else has reported this issue. As a first step to reproduce, what terminal/console are you using? cmd.exe, Windows Terminal or something else? Do other tcl 9.0 builds work (preferably if you can build tclsh yourself to check) ? What happens if you redirect stdout? For example, c:\Tcl90\tclsh \tmp\x.tcl > output.txt
wish does not expect the stdout channel to be present, tclsh does. That's probably the difference. As to why stdout is not found or initialized, I am not sure. One possibility is that you have both tcl86 and tcl90 directories in your PATH environment variable. Could you check for that?
tclcompiler and tbcload mismatch in magicsplat 2.0.5
untar still fails in 2.0.3
I have decided not to wait for tcllib releases. The 2.0.5 release should contain a repository snapshot that includes the fix. Please re-open if still not fixed.
Default opening method of `.tclapp` files doesn't pass command line arguments