Free 14-Day Evaluations    
Product Downloads    

Sign in     


DESKTOP MOBILE DOWNLOAD PURCHASE SUPPORT INFO COMPANY
 Home  >>  Support  >>  Knowledge Base

Archive for the 'TSL' Category

Switching Sessions with a Keystroke

Monday, March 26th, 2007

TERM and TinyTERM for Windows allow multiple sessions to be opened in a single window. You can switch through these sessions in order with the NEXTSESS keyboard function.

To access that function, open the keyboard mapper. Click the “Chart Open” button to bring up the key chart. On the right of the chart, click the “F” button for a list of functions. Using your mouse, drag the NEXTSESS function from the chart and drop it on the key you’ve chosen.

Click “Chart Close” to close the chart, then click OK to close the keyboard mapper. Click Save As to give the new keyboard scheme a name. OK everything and save the settings. From that point on, when you have the correct keyboard scheme chosen, you can cycle through the open sessions in a TinyTERM or TERM window by pressing the chosen key.

File Transfer Only Works One Direction

Tuesday, March 20th, 2007

You may encounter a situation where you can upload files to the remote system, but not download them to your PC. Or download may work, but uploading fails. There is a set of configuration changes that will fix this problem in most cases.

For systems running TinyTERM 3.3 for Windows, or any version of TERM on any operating system, write a script that includes three lines:

SET ESC8BIT ON
SET COMPRESS OFF
PROTOCOL NONE

Save that script as “onewayft.cmd”, then run it when you start TERM by adding it to the command line:

term onewayft.cmd

Add any other command-line arguments as needed. If you are transferring files between two versions of TERM, create and use the script on both systems.

For TinyTERM 4.x for Windows, the settings are in the file transfer properties. To access them, go to the Edit menu and select File Transfer Properties. On the resulting dialog, clear the check box marked Use automatic data compression.

Next, click the Setup button in the upper right. In the resulting File Transfer Protocol Setup dialog, check the Use 7bit transfer over 7bit connection (esc8bit) box. Click OK twice, then save the session.

This will take care of the problem in most cases. Once in a while, you may need to add this command to the TERM script:

SET ESCCTL ON

In TinyTERM 4, go to the File Transfer Protocol Setup dialog and check the Escape Control Characters option to accomplish the same thing.

CR 229

TSL_AtObjAddArray Does Not Work

Tuesday, March 20th, 2007

The TSL compatibility command tsl_atobjaddarray() does not work. It should populate a list box or similar control with the contents of an array. Instead, it does nothing.

You can work around this with a simple while() loop. For example, the following CScript fragment adds the contents of a ten-item array named Items:

tsl_atobjinit();
counter = 0;
while (counter < 10) {
tsl_atobjaddlist(Items[counter]);
counter++;
}
tsl_atobjdone(111,9,5,5,250,200,(0)|16385,"","",0,0,-1,"chosen", "");

The closing tsl_atobjdone() command must be included, but the format will vary depending on the control you’re populating.

CR 611, fixed in TinyTERM 4.40

Sending Function Keys in Script

Tuesday, March 20th, 2007

For most terminal emulations, a function key sends an escape or control sequence. That sequence can be sent to the host using CScript or TERM Script Language (TSL).

For example, the F1 key in Wyse50 emulation sends Ctrl-A, then the @ sign, then a carriage return. This is usually abbreviated ^A@^M. The script commands to send that sequence are:

CScript: te.xmit(“\001@\015”);
TSL: xmit “\001@\015”

As you can see, the control characters are replaced in the strings by their octal values, preceded by the backslash character \. The octal values for control characters can be found at http://www.robelle.com/. Keyboard references for several emulations are available on our website.

Automated Script Translation

Tuesday, March 20th, 2007

TinyTERM 4.x includes a script translation utility, tsltrans.exe, which will convert scripts written in TERM Script Language (TSL) to CScript. That utility is documented in the file tsltrans.wri and in the Programmers Reference Manual. Most releases of TinyTERM 4 will also execute TSL scripts without translation.

That is the only script translation utility available in any Century Software, Inc., product. No version of TERM will translate from CScript to TSL. Nor will any version of TERM or TinyTERM translate scripts written in any other scripting language.

DDE and Script Commands in TinyTERM 4

Friday, March 16th, 2007

TinyTERM version 4 includes a DDE server and client, documented in the Programmer’s Reference Manual. The server is configured and enabled through CScript commands.

It’s possible using the DDE server to send script commands to TinyTERM from another application. However, it only accepts TERM Script Language commands in that manner, which are not documented in the Programmer’s Reference Manual. PDF documentation for TSL can be downloaded from this link.

That documentation also applies to TinyTERM Application Developer 3.3. That version of TinyTERM uses TSL exclusively, not CScript, so the notes above do not apply.

CR 499

Left Arrow Erases Characters

Friday, March 2nd, 2007

This is normal behavior when “backspace sends delete” is turned on. It can also cause the last character in some text entry fields to disappear. Turning it off depends on which product you’re using:

TERM for UNIX or DOS
Execute this TERM Script Language command:

SET BSDEL OFF

TinyTERM for Windows version 3.x or earlier,
and TERM for Windows

Go to the Configure menu and select Emulation. Clear the BACKSPACE key sends DELETE check box.

TinyTERM for Windows version 4.0x
Edit the .tpx file using any text editor. Search for the line:

destbs=1

Change the 1 to a 0 (zero). Save the file. The change will take effect the next time you start TinyTERM.

TinyTERM for Windows version 4.1x or higher
In the Session Properties, go to the Keyboard tab. Clear the Destructive Back Space check box.

CR 98, default changed in TinyTERM 4.20
CR 160, .tpx files changed
CR 375, UI added

Sending a BREAK Signal by a Keystroke

Wednesday, February 28th, 2007

Using the keyboard mapping function, you can configure a key to send a BREAK signal. By default, this is mapped to ^B in TERM for DOS or UNIX. You can change that with the SETKEY script command. For example, to set F10 as the BREAK key, the command is:

setkey f10 break

In TinyTERM for Windows, open the keyboard mapper and click the Chart button to open the TCS Chart. Click the F button there to bring up the function list. With the mouse pointer drag the word BREAK from the chart and drop it on the key you want to use.

Some releases of TinyTERM 4.x ignore the BREAK command from the chart. When this happens, click on the key in the keyboard mapper you want to use. Change the Action drop-down to COMMAND. In the Value field, type:

te.break();

Click the Set button to finalize the mapping.

CR 415

  Copyright © 2024 Century Software, Inc. All Rights Reserved999 TERMS OF USE PRIVACY POLICY EULA