|
Archive for the 'TSL' Category
Wednesday, April 11th, 2007
TERM has several of the function keys preset for certain actions, such as opening the menu or help. You can reset those by editing the .termsys file in UNIX, or the term.sys file in DOS. Search the file for lines that start with the word setkey; for example:
setkey f1 menu
Change the word after the function key name (in this example, menu) to reset:
setkey f1 reset
This will reset the keys to their default values the next time you start TERM.
Posted in Keyboard, TERM, TSL | Comments Off on Disable TERM Preset Keys
Wednesday, April 11th, 2007
Using TinyTERM 3.3 on Windows 95, when executing a batch file from within a script, you may get a syntax error instead. When this happens, make sure the *.bat file is located in a directory listed in the system PATH.
Posted in TSL | Comments Off on Syntax Error Running Batch File
Wednesday, April 11th, 2007
Using any version of TERM for Windows, or TinyTERM Application Developer 3.3, you can remove the product name from the Window title. Doing this will allow the minimized label to show only the connection name.
- Edit the file WTERMUS.CMD using any text editor.
- Search for t_wtitle until you find these lines:
setvar t_wtitle t_sysverb
if trim (sysvar(20)) !=”
setvar t_wtitle t_wtitle +’-‘ + sysvar(20)
endif
- Change the third line above to read:
setvar t_wtitle sysvar(20)
- Save the changes to the file. The next time you start TERM, the window title should reflect the changes.
Posted in TSL | Comments Off on Remove “TinyTERM Application Developer” from Title Bar
Tuesday, April 10th, 2007
The SETKEY command redefines a key on the keyboard. The key then sends a different character of string of characters when pressed. SETKEY can also be used to cause a key to run a TinyTERM script or call one of TinyTERM’s internal functions.
The syntax for SETKEY is:
setkey keyname value
The keyname may be any of the following:
- F1 – F12 (Function keys 1 – 12)
- AF1 – AF12 (Alt-Function keys: hold the Alt key and hit F1 – F12)
- SF1 – SF12 (Shift-Function keys)
- CF1 – CF12 (Ctrl-Function keys)
- CSF1 – CSF12 (Ctrl-Shift-Function keys)
- “a” – “z” (Lower-case letters a-z, must be in quotation marks)
- “A” – “Z” (Capital letters A-Z)
- “^a” – “^z” (Ctrl- keys a-z)
- AltA – AltZ (Alt keys a-z, Windows may override)
- “0” – “9” (Top row number keys)
- kp0 – kp9, kp+, … (keypad number and symbol keys, NumLock must be on)
- c-kp0 – c-kp9, … (Ctrl-keypad number and symbol keys)
- “#”, “$”, … (Any symbol)
- up, home, end, … (Named keys)
- c-up, c-right, … (Named Ctrl-keys)
Only the letter keys are case-sensitive. The other keys can be typed upper- or lower-case for the SETKEY command.
The value may be one of the following:
- A single character or string of characters in quotation marks. This may include:
- a special string character
- \x42 – a hex value preceded by \x
- \072 – an octal value preceded by \
- ^M – a control character
- or any other valid TERM string sequence
- the name of a pre-defined TERM function key such as PRINT or BREAK
- “@@command” – A valid TERM Script Language command
Examples
- setkey f1 “MyLoginName”
causes the F1 key to send MyLoginName down the comm line.
- setkey “b” “MyPassword”
causes the lower-case b key to send MyPassword down the comm line.
- setkey kp* abort
causes the keypad * key to send the standard abort, usually ^C.
- setkey pgup “@@cls”
causes the PageUp key to run TERM’s cls (clear screen) command.
- setkey SF1 “@@do myfile”
causes the Shift-F1 key to run the TERM script myfile.cmd.
- setkey F11 “@@do wtermus@w_file_quit
causes the F11 key to run the w_file_quit procedure within the TERM script wtermus.cmd.
Posted in Keyboard, TSL | Comments Off on The SETKEY Command
Monday, April 9th, 2007
Multiple file transfers in a TERM for UNIX script can cause error 1204. It usually happens after using the OK button to acknowledge that a file has been sent. The OK button sends a ^C, causing a script abort.
The workaround is to turn off the transfer status window before the transfer. The command to do that is:
set xferstat off
It can be put in the script anywhere, as long as it executes before any file transfers.
Posted in File Transfer, TSL, UNIX | Comments Off on Error 1204 Command File Aborted
Monday, April 9th, 2007
Using a TinyTERM script to execute a file transfer, the transfer status dialog box may come up. Depending on how your script is written, this may pause or stop script execution entirely.
To prevent the dialog box from coming up, you can disable it with a script command. The TERM Script Language command is:
set xferstat off
For CScript, use the command:
FTSetXferStat(0);
Enter the appropriate command anywhere in the script before the file transfer starts.
Posted in CScript, File Transfer, Scripting, TSL | Comments Off on Dialog Box Stops File Transfer Script
Thursday, April 5th, 2007
You may want to print the TERM or TinyTERM screen without going to the menus. In that case, you can remap a key to perform this function.
In TERM for UNIX, the F6 key is mapped to print by default. To change this, use the SETKEY script command. For example, to map printing to Shift-F6 instead, the command is:
SETKEY SF6 PRINT
In TinyTERM for DOS the Alt-P key prints the screen by default. To change this, type Alt-S for the Setup menu, then select Keyboard. Change the Print Screen line to the desired key.
There is no default key mapped to print screen in TERM for DOS. To change that, type Alt-K to get the keyboard settings. Change the Print Screen line there to the desired key.
TERM and TinyTERM for Windows require more steps:
- Open the keyboard editor.
- Click the Chart Open button.
- Click the F button in the upper right.
- Click and drag the word PRINT from the chart to the key you want to use; i.e., F8.
- Click the Chart Close button.
- Click the Set button.
- Click OK.
- Click the “Save As” button to give the new keyboard scheme a name. You can use an existing scheme name to replace it if you desire. But if you replace the “Default” scheme, there’s no way to restore it to its previous settings.
- Click on Apply and OK.
Posted in Keyboard, Screen, TSL | Comments Off on Print Screen with a Key
Thursday, March 29th, 2007
Neither TinyTERM nor TERM includes a switch for silencing beeps sent by the host. However, you can do this through the included script languages. In TERM Script Language, the command is:
TRANS INPUT “\007” “”
As you can see, this takes the ASCII 7 character — ^G or the bell sound — and turns it into nothing. Unfortunately, there is no equivalent CScript command.
Posted in Terminal Emulation, TSL | Comments Off on Turning Off Beeps
Thursday, March 29th, 2007
Some versions of TERM for UNIX, particularly prior to version 6.2.5b, can only read and write file names up to 14 characters long. This affects scripts, file transfer, log files, etc. The solution is to upgrade your version of TERM.
At this writing, TERM for AIX still exhibits the problem. The most current versions of TERM for all other operating systems do not have this restriction.
CR 70
Posted in TERM, TSL, UNIX | Comments Off on File Names Limited to 14 Characters
Tuesday, March 27th, 2007
All versions of TERM have the capability to record a user’s keystrokes and the host system’s responses. It’s accessed through the TERM Script Language command LEARN:
LEARN START filename
LEARN STOP
Replace filename with the name of the TSL command file you want to create.
In TERM for Windows, a “Learn mode” or “Macro recorder” option is also available from the Tools menu. It will request a file name in a Windows dialog, and otherwise functions the same way as the LEARN command.
Most versions of TinyTERM do not have such capability, as it requires a script language. However, TinyTERM versions 4.30 and above do have a macro recorder on the Tools menu. It behaves as the LEARN command in earlier versions, but creates a CScript file instead of TSL.
Posted in CScript, Keyboard, Scripting, TSL | Comments Off on Keyboard Macro Recorder
|