Change the Title Bar from the UNIX application
Question :
Can I have my UNIX application change the TinyTERM window title? I'd like to show the application module when a user changes screens.
Answer :
Yes, by sending a TinyTERM CScript command from the UNIX application. The sequence:
<ESC>&oF&oFSetPropNow(158,"Module");AppRedraw();^M
will do what you need.
The sequence:
<ESC>&oF
tells TinyTERM that what follows are CScript commands. <ESC>&oF should be replaced with the Escape character, ASCII value 27.
^M
signals the end of the CScript commands. As with <ESC>, ^M should be replaced with the Ctrl-M character, ASCII value 13.
SetPropNow(158,"Module");
sets the Windows title bar remark. "Module" can be replaced with any quoted string.
AppRedraw();
redraws the TinyTERM window. This forces the title bar to refresh.
Other CScript commands can be run from the host system in the same manner. For a full list of CScript commands, refer to the documentation included with TinyTERM.
|