How to use twin(tcl/tk for MS-Windows) August 23, 1994 Software Research Associates, Inc. [1] How to extract Suppose the destination directory is c:\twin in this section. 1) Move to the destination directory. cd \ 2) Extract the file. pkunzip -d twinebin.zip Then, you will find 3 directories twin\bin, twin\tcl, twin\tk). [2] How to use wish Add c:\twin\bin to your PATH environment variable and set the following environment variables. Note that separator must be "/". set TCL_LIBRARY=c:/twin/tcl set TK_LIBRARY=c:/twin/tk set DISPLAY=hostname:0.0 (Anything is fine.) set HOME=c:/ (the directory when you do "cd ~" command.) Choose [File]-[Run] in menu of ProgramManager , and input wish. [3] How to start widget demo Choose [File]-[New]-[ProgramItem] in ProgramManager, and set Description: Widget toor CommandLine: wish -f widget WorkingDirectory: c:\twin\tk\demos Now you can start widget demo by double click to icon. [4] Characteristics and limitation of twin 1. Support compiler Microsoft Visual C++ ver 1.0. 2. User init file $HOME/_wishrc 3. Non support command "exec" and "send" are not supported. 4. Bitmap Option "-bitmap @file" now supports Windows BITMAP file. 5. Printer Canvas option "-print" has been added insted of "-postscript" option due to support direct printing to Windows printer. 6. Color All X-Windows rgb.txt is supported. 7. Font You can use font names in Windows rule. (FontName-Stype-Size) e.g. "Courier New-Normal-14" (This is default font) 8. File system File separator is '/' but not '\'. glob command don't extract drive name. 9. Focus & grab Focus and grab works but not a global grab. "grab -global" is as same as "grab" 10. wm Most of options are supported including min and max. Though protocol (and maybe a little more) option is not supported. 11. widget toor demo tkdemo works without any problem if you change font rules in Windows rule. 12. new command "chdrive" (change drive) command is newly added. 13. speed Run time speed depends on the Windows function "bitblt" (Windows-API). 14. Easy to change This version include xlibrary fuction. So It is easy to follow Tk's version up.