TinyTERM version 4.x has the capability to program the mouse buttons for a number of functions. The most popular are copying and pasting text. TinyTERM 4.30 and higher have a right-click menu for those functions, but it can also be programmed in earlier versions.
To set this up, open the Edit menu and select Session Properties. Go to the Mouse tab. For the button you want to program (left, middle or right), change the option to “Send custom string.”
To copy text, enter the custom string:
%o
and click OK. You will need to select text before you can copy it. The left mouse button selects text by default.
To select text, drag the cursor over it. When you click to copy, the cursor must be in the TinyTERM window, but it does not have to be on the selected text. The selected text will be copied to the Windows clipboard, then the selection will be canceled.
To paste text, enter the custom string:
%p
and click OK. Clicking the programmed mouse button anywhere in the TinyTERM window will then paste the current text from the Windows clipboard to the current cursor position. It will not paste the text anywhere you click, but only at the host’s current cursor location.
You can combine these two in a single line to copy selected text, then immediately paste it. The custom string for that is simply:
%o%p
The mouse buttons can be programmed for a number of additional functions. For a full list, see the TinyTERM Help file.
Posted in Attributes | Comments Off on Programming the Mouse
You can identify which PC a user logs in from through the WRU answer back feature. How you access it depends on your version of TinyTERM or TERM:
- TERM for DOS or UNIX
Use the WRU and WRUCHAR script commands.
- TERM (any version) or TinyTERM (up to version 3.3) for Windows
Go to the Configure menu and select Emulation. Click the Advanced button.
- TinyTERM 4.x for Windows
Go to the Edit menu and select Session Properties. On the Session tab, click the Setup button next to the terminal emulation type.
There are actually two WRU settings. When the emulation receives the character determined by the ASCII value in the “WRU Inquire character” field, or set with the WRUCHAR script command, it sends the “WRU Answer Back” or WRU string to the host. The default inquire character value is 5, which corresponds to Ctrl-E. So when TERM or TinyTERM receives Ctrl-E from the host, it sends the answer string.
To identify PCs through the WRU settings, assign a unique string to each PC. Enter that string in the “WRU Answer Back” field or as the WRU string. Once that’s been saved, your UNIX host must send the WRU inquire character and wait for the response. The answer back string can be used by UNIX for any purpose you need.
If you need to disable WRU entirely, change the WRU inquire character to -1. ASCII numbers range from 0 to 255, so a value of -1 can never be received from the host. Thus, WRU is ignored.
Posted in Terminal Emulation | Comments Off on WRU
Macro Recorder
April 12th, 2007
If you need to repeat the same keyboard actions repeatedly in TinyTERM 4.x, the CScript scripting language can do it. In TinyTERM 4.30 and higher, you can do this automatically through the Macro Recorder.
This tool copies the keys you type in, watches for responses from the host system, and records it all to a CScript file. To use the Macro Recorder:
- On the Tools menu, click Macro Recorder.
- In the list box, type a name for the macro. If you accept the default name, the ## signs will be replaced by numbers; e.g., KeyMac00.cs. Every new macro will be assigned a new number, one higher than the last macro created.
- Click the Record button to begin recording.
- Type the commands and other keystrokes you wish to record. You must hit Enter at least once, or the macro will not be recorded.
- Click the Pause button to temporarily halt recording and to start recording again later.
- Click the Stop button to end recording and write the macro file.
There are two ways to execute the resulting macro:
- Open the Macro Recorder. In the list box, type the name of the macro. Click the Play button.
- Click on Tools | Execute Script File. Select the macro from the list of scripts, then click the Open button.
If the macro isn’t doing quite what you expected, you can record a new macro or edit the existing one. To edit, go to the Tools menu and select Script Editor. Click the Open button to select your macro, then edit it as you need to.
You can also view a screencast that demonstrates this process. For more information on script commands, see the TinyTERM Programmers Reference Manual. You can also contact our Support department for help writing and debugging macros and other CScript files.
CR 130, added in TinyTERM 4.30
CR 724, not enabled in TN3270 or TN5250
CR 800, must hit Enter
Posted in CScript, Keyboard, Screencast | Comments Off on Macro Recorder
Hostmode
April 12th, 2007
All versions of TERM for UNIX, Windows or DOS include a hostmode utility that’s accessed by typing term -x, term -1x or term-2x at the command prompt. TinyTERM Application Developer version 3.3 includes a similar feature accessed through the Action menu.
Hostmode capability was added to TinyTERM 4.x in version 4.30 through the hostmode.cs script. If your copy of TinyTERM doesn’t have hostmode.cs, you can download it here. The download version includes a utility that creates the user data file. Download the file and save it to your TinyTERM install directory, which is usually C:\Program Files\Century\TinyTERM.
To use hostmode.cs, your PC needs a modem, so you can set it up to accept an incoming call. For best results, the modem must accept typed commands. If it has a Winmodem, a modem specifically designed to work only with Microsoft Windows, the hostmode.cs script won’t be able to communicate with it properly, and the script will fail.
Nex, you’ll set up a connection on the controlling PC. To do this, open TinyTERM. Click on the Edit menu and select Session Properties.
In the Session Properties dialog, change the connection type to RS232 (Serial). Under the Available devices, select the COM port your modem is on. Then click the Setup button next to that line to set the connection speed. You probably won’t need to change anything else in that dialog.
Once you’ve set up the connection, click OK until the Session Properties dialog closes. Go to the File menu and select Save Session or Save As to save the settings.
Next you’ll need to edit hostmode.cs. To do this, Go to TinyTERM’s Tools menu and select Script Editor. In the Script Editor, click the Open button and select hostmode.cs. It will will open in a separate Notepad window.
About 25 lines down you’ll see a section labeled, “Variable declaration and initial values.” Each line after that has a variable setting and a description. These need to be changed to match your PC’s requirements.
The settings in this section of the script are fairly common and may work for your modem. But then again, they may not. If they don’t work, try to get the correct settings from your modem documentation. Most modems come with a manual or other documentation that lists the best values for these functions. If you don’t seem to have the information, gather all the documentation you can for your modem and call or email our Technical Support for assistance.
The other values in this section are mainly personal preference. If you don’t like the setting, feel free to change it. Just remember to keep the quotation marks in place, and be sure the upload and download directories you choose exist on the PC.
Once that’s done, close Notepad and save the changes. You can then click the Run button to start hostmode. If everything has been set up properly, you’ll see messages telling you that hostmode is running.
To stop hostmode, wait until no one is currently dialed in, then type Ctrl-C to exit the script. You won’t need to make further changes, so to start it again, go to TinyTERM’s Tools menu and select Execute Script File. You can run hostmode.cs from there.
CR 32
Posted in CScript, File Transfer | Comments Off on Hostmode
Port Forwarding
April 12th, 2007
Port forwarding, or tunneling, is a way to forward normally non-secure TCP/IP traffic through an SSH connection. You would normally need it any time you have traffic over a public network, such as the Internet, that you don’t want anyone to snoop on. More information is available elsewhere on our website.
To set it up in TinyTERM version 4.3 or higher, do the following:
- Open a new session in TinyTERM.
- Click on the Edit menu and select Session Properties.
- Change the connection type to SSH and click the Apply button.
- Click on the Port Forwarding tab.
- Enter a name for the connection.
- Choose whether to forward a local TCP/IP port to a remote host (Local to remote forwarding), or forward a remote port to the local PC (Remote to local forwarding).
- Enter the local port that will forward or receive forwarding.
- If the SSH server is not the remote system, check the “Remote host is different machine from SSH server machine” box and enter the hostname or IP address of the SSH server.
- Enter the TCP/IP port for the remote host.
- Enter the name of the local PC application to run, or click the Browse button to select one. Enter any command-line parameters for the local PC application.
- Click the Add button to add the connection to the list.
The next time you open this TinyTERM session, the port forwarding you set up will be active. Sample application setups are available here.
CR 385, added in TinyTERM Plus 4.30
Posted in SSH | Comments Off on Port Forwarding
What Is SSH?
April 12th, 2007
SSH (Secure SHell) is a replacement for telnet and rlogin. It encrypts all data transmissions between the terminal and the host, rather than sending them in plain text.
When connecting to a host over the Internet, the data transmissions are available to anyone with the technical knowhow to tap into them. Telnet and rlogin send data in plain text, so they can easily be read. This could compromise proprietary or confidential information.
With SSH, the data transmissions are encrypted. Even if someone manages to hack into your connection, the information is in a format readable only by your PC and the remote host. This helps protect your valuable information from unauthorized access.
TinyTERM Plus, TinyTERM Thin Client and TinyTERM Web Server all include SSH from versions 4.10 on. (TinyTERM Thin Client was combined with TinyTERM Plus in version 4.40.) TERM for UNIX version 6.28 also includes SSH.
You will also need an SSH daemon on your host computer. You can download this program from http://www.openssh.org/ at no cost.
Posted in SSH | Comments Off on What Is SSH?
If you need to map the same function to several keys in TinyTERM for Windows, with only minor changes to each one, you can speed up the process so you don’t have to type the same thing repeatedly. Once you’ve mapped the first key, use the mouse to drag it to the Clipboard in the Keyboard Mapper. You’ll find it in the lower left-hand corner of the “Edit Keyboard Map” dialog box. This copies the entire key to the clipboard. You can then drag the Clipboard to any number of keys, making them all the same. Once that’s done, click on each of the keys you remapped to change them individually.
You can also view this information in a screencast by clicking here.
Posted in Keyboard, Screencast | Comments Off on Keyboard Mapper Clipboard
This is a timing issue. To resolve it, do the following:
- Edit the .termsys or TERM.SYS file.
- Double the values for RTIME, STIME and ITIME.
- Save the file.
Posted in ZMODEM | Comments Off on ZMODEM Drops Connection During Transfer
The following versions of TinyTERM and TERM are certified Year 2000 (Y2K) compliant:
- TinyTERM 3.3, April 1997 or later
- TinyTERM 4.05 or higher, September 1999 or later
- TERM for UNIX 6.2.5 or higher, 1997 or later
- All versions of TinyTERM or TERM for DOS.
Posted in General | Comments Off on Year 2000 Compliance
TinyTERM version 4.x requires Winsock2 to connect via TCP/IP. This is standard in Windows 98 or higher.
Windows 95 does have the ability to use Winsock1 only. You must update to Winsock2 to use TinyTERM version 4. In fact, TinyTERM 4.0x won’t install unless Winsock2 is included, even if you plan to use a serial or modem connection.
Older versions of TinyTERM or TERM for Windows can use Winsock1 or Winsock2 interchangeably.
CR 55, Winsock2 requirement removed for non-TCP/IP connections
Posted in TCP/IP, Windows | Comments Off on Winsock1 vs. Winsock2
|