You may want your UNIX application to change the TinyTERM window title. For example, you may want the title bar to show the application module when a user changes screens.
You can do this in TinyTERM 4.02 or higher by sending a CScript command from the UNIX application. The sequence:
<ESC>&oFSetPropNow(158,”Module”);AppRedraw();^M
will do what you need. Taken piece by piece, the string
<ESC>&oF
tells TinyTERM that what follows are CScript commands. <ESC> should be replaced with the Escape character, ASCII value 27.
^M
signals the end of the CScript commands. Similar to <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.
CR 17
This entry was posted
on Monday, February 26th, 2007 at 2:24 pm and is filed under CScript.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.