|
Archive for the 'Scripting' Category
Monday, April 23rd, 2007
The tsltrans.exe program included with TinyTERM 4.x will convert TERM Script Language files to CScript. However, it was not always well-documented. The tsl_ commands that it uses are documented in the current Programmers Reference Manual.
CR 52
Posted in CScript, Documents, Scripting, TSL | Comments Off on Documentation on Translated Scripts
Monday, April 23rd, 2007
CScript includes the opsys2() command, which should return a numeric value based on the version of Windows in use. It’s not fully documented in TinyTERM versions prior to 4.31. If you have an older version of TinyTERM, you can download updated CScript documentation.
CR 493, fixed in TinyTERM 4.31
Posted in CScript, Documents | Comments Off on Opsys2() Not Documented
Monday, April 23rd, 2007
Configure a session to close on disconnect, and set up outfirst.cs as the Post-session start script. Restart TinyTERM, then connect to a host and login. On logout, script_disconnect() prevents TinyTERM from closing automatically. Script_shutdown() does the same thing.
CR 477, fixed in TinyTERM 4.31
Posted in CScript | Comments Off on Script_Shutdown() and Script_Disconnect() Execute Too Early
Friday, April 20th, 2007
If you check the Session Properties option Close session on disconnect and exit in conjunction with using the outfirst.cs script, TinyTERM tries to close the session before the server does. You get the outfirst.cs warning message several times before you can finally disconnect. After you disconnect, TinyTERM does not close.
CR 440, fixed in TinyTERM 4.31
Posted in CScript | Comments Off on Close Session on Disconnect Fails with Outfirst.cs
Friday, April 20th, 2007
Using TERM for Linux 6.2.5b, executing the command:
term -x server
brings TERM up in server mode normally. Typing “q” to quit causes TERM to hang. This is fixed in TERM 6.28.
CR 424
Posted in TSL | Comments Off on Server.cmd Hangs on Quit
Friday, April 20th, 2007
The CScript command te.wait() allows multiple-case wait strings; e.g.,
return_value = te.wait(“my name^S|^Syour name”,0);
which will return 0 if either “my name” or “your name” is received. The WAIT command in TERM Script Language allows a similar structure:
wait “my name|your name”
but the return value is position-dependent. In the above example “my name” would return 0 to the _retval variable, and “your name” would return 1.
This functionality was added to te.wait() in TinyTERM 4.30.
CR 392
Posted in CScript | Comments Off on Position-Dependent Return Value for Te.Wait()
Friday, April 20th, 2007
The te.cread() command does not work properly in early versions of TinyTERM. If you set it up not to time out, but read a specific number of characters, it will not read all the characters you specify. Instead it will complete its action after an unknown amount of characters are read. This was corrected in TinyTERM 4.30.
CR 383
Posted in CScript | Comments Off on Te.Cread() Doesn’t Read Properly
Friday, April 20th, 2007
The documentation for te.comin() originally read:
String ComIn
ComIn()
Waits for a character to be received at the communications line, and returns it as a string.
ltr = te.ComIn();
This is incorrect. te.comin() does not wait, but checks the communications line instantaneously. The current, correct documentation reads:
String ComIn
ComIn()
Looks for a character to be received at the communications line and returns it as a string. If no character is received, returns a zero-length string.
ltr = te.ComIn();
CR 377, corrected in TinyTERM 4.30
Posted in CScript, Documents | Comments Off on Te.Comin() Documentation
Friday, April 20th, 2007
The te.terminal() method has no timeout settings. It still times out after 95 seconds. This was fixed in TinyTERM 4.30.
CR 363
Posted in CScript | Comments Off on Te.Terminal() Times Out at 95 Seconds
Friday, April 20th, 2007
Using TERM for Linux 6.2.5b, connect to a tty that has a modem installed. Connect to the modem, then go to the TERM menu, or type ^E to get the c=> prompt, and type H for Hangup. TERM locks up. The TSL HANGUP command will do the same thing. This is fixed in TERM 6.28.
CR 349
Posted in Linux, TSL | Comments Off on HANGUP Causes TERM for Linux to Hang
|