UniPress
Software,
Inc.
800 222-0550 / 732 287-2100
The very first step you must take after you start PowerTerm is to set the emulation type you want. To do this either click on the 'Terminal' icon near the right side of the toolbar, or select the Terminal|Setup menu choice.
Then check the appropriate box on the Emulation screen and click OK. (Additionally, you may choose to set many other parameters.)
The next step to set up the Communication parameters, so you should run the Communication|Connect menu.
Down below, you will find many helpful hints and tips to help answer many of the Frequently Asked Questions we've run into.
ITEMS COVERED
This is because you will have to set the backspace key to send backspace or delete. To do this, select the "Terminal" menu and choose "Setup". Select the "Keyboard" tab from the "General Setup" screen. Now choose the setting you wish in the "Backspace Key Sends" section. The key can send either Backspace or Delete.
The VT100 keyboard only has four functions keys (PF1-PF4) across the top of its
keyboard. PowerTerm's VT100 emulation maps PF1-PF4 to the F1-F4 keys. The
remaining function keys have no meaning in the VT100 emulation. If you want to change
these keys or want to add additional keys, please refer to the section called,
Baud rate is easily chosen from the pulldown list of speeds in the Communication|Connect screen after you click on the COM choice.
It is possible that the speed of your modem will not appear in the list. (Many users with 28.8kb modems raise this issue.) Just select the next higher speed in the list, such as 38.4. There are no problems with this method.
Sometimes people try to make a telnet connection and get a message from their autodialer trying to make the Internet connection, instead of the direct connection they want to their LAN.
PowerTerm can easily be setup to automate the login process, so that all steps necessary to login to a host computer can be activated via a script. Here are 2 sample login scripts, one for a modem connection and the other for a telnet connection:
MODEM CONNECTION
send "atdt1-212-872-8181^M"
wait 30 for "CONNECT 9600"
send "^M"
wait 10 for "login:"
send "joseph^M"
wait 10 for "Password:"
send "cotten^M"
TELNET CONNECTION
wait 10 for "login:"
send "wesley^M"
wait 10 for "Password:"
send "snipes^M"
In the above examples,
To use this facility it is necessary to precede the data stream with an escape sequence, and to terminate the data stream with an escape sequence.
To print to a locally attached PC printer from the AS400, you must have APPC running on both the PC and AS400. An example of APPC on the PC is Client Access. Another method is to have LPD running on your PC. Because LPD is a separate application and is not a part of PowerTerm, please consult your LPD documentation to set this up.
A very frequent problem report we get from customers is that a file named "E32APPC.dll" is missing. This means that the PC doesn't have APPC, as explained above.
PowerTerm has 3 powerful and easy to use methods for mapping keys:
With the Drag and Drop Key Mapping facility you can assign a key on your PC to perform the action of any (single) key on the terminal being emulated.
With PowerTerm Version 5.0.1 and newer you can assign a complex sequence to any key on the PC keyboard.
Using the script language, you can create any type of key mapping.
Here are examples of the types of keymappings you can do:
Versions earlier than 5.0.1 can perform all keymappings. In those versions, complex keymapping is done via the script language.
Here are examples of how to do those operations:
Example 1: Left-click and hold the 'Do' key from 'VT Keyboard' [ie, the top half of the screen, representing the keyboard of the terminal being emulated]. Drag this to the 'Enter' key on the numeric keypad of the 'PC keyboard' of the screen, and release the mouse.
Example 2: Left-click the CTRL key on the 'VT Keyboard' [ie, the top half of the screen, representing the keyboard of the terminal being emulated]. Left-click and hold the '^X' key. Drag this to the 'F2' key on the 'PC keyboard' of the screen, and release the mouse.
key f2 do {send "sequence<return>"}
Remapping keys on the PC Keyboard - These keys can be mapped via a '.psl' (PowerScript Language) file. Here are the step by step instructions:
In the highlighted box, type a file name of your choice, but be sure to use the extension .psl, and supply a prefix. (So you will have a name like "mapkeys.psl".) Press [OK].
What the above examples do:
Notes:
A. If you want PowerTerm to send letters or words to the screen, be sure to enclose these in quotes. If you are sending a command, quotes are not needed.
B. The Function keys MUST be in lower case, as in the examples.
C. <return> and ^M are interchangeable
The Floating PowerPad can be programmed either as in step (a) or step (b) above.
note: The instructions for remapping the keyboard with the script language are the same as above, except that the keypad numbers are identified by numpad[n].
example:
key numpad1 do {send ls^M} #a Unix example
key numpad2 do {exec notepad}
key numpad3 do {send <f2><enter>} #a 3270 or 5250 example
PowerPad
The PowerPad is setup like a grid. You need to specify the row and column of the entry you want to program. The label of the button must be double-quoted and the function of the button goes after the "send".
Examples:
Softkey
The softkeys are the labelled "F1", "F2" .. "F12" buttons at the bottom of the PowerTerm window. Here are examples of programming them in a script:
In Windows 95 and NT 4.0, create a "shortcut": Use "My Computer" or "Explorer" to view the PowerTerm Directory. You will see an item for 'ptw32.exe' or 'ptw.exe'. Perform a right-click action on this item and choose 'Create Shortcut'. A new icon will appear. (You may rename this if you like.) Drag this new icon onto the Desktop, right-click on it again and choose 'Properties'. Select the 'Shortcut' tab and then modify the 'Target' line.
..... ptw32.exe (or 'ptw.exe')
At the end of this line, simply add 'comm.psl' followed by:
example:
..... ptw32.exe comm.psl 2 19200 xonxoff 508-234-7531
Important Note:
If you see quote marks around the text on the target line, place the new words
OUTSIDE of the quotes, so you will have a target such as
"C:\Program Files\PTW32\ptw32.exe" comm.psl 2 19200 xonxoff 508-234-7531
In Windows 3.1, Windows for Workgroups, or NT 3.51: Use "Program Manager" to open the PowerTerm Group. You will see an icon for 'PowerTerm Com1'. Single-left-click on this icon to select it, then choose the File|Properties menu. Adjust the 'Command Line' as indicated above for the 'Target'. You can also rename this item by changing the "Description Line" as you wish, such as "PowerTerm modem to office".
In Windows 95 and NT 4.0, create a "shortcut": Use "My Computer" or "Explorer" to view the PowerTerm Directory. You will see an item for 'ptw32.exe' or 'ptw.exe'. Perform a right-click action on this item and choose 'Create Shortcut'. A new icon will appear. (You may rename this if you like.) Drag this new icon onto the Desktop, right-click on it again and choose 'Properties'. Select the 'Shortcut' tab and then modify the 'Target' line.
..... ptw32.exe (or 'ptw.exe')
Simply add 'telnet.psl' and the host you want to telnet to.
example:
..... ptw32.exe telnet.psl myhost
Important Note:
If you see quote marks around the text on the target line, place the new words
OUTSIDE of the quotes, so you will have a target such as
"C:\Program Files\PTW32\ptw32.exe" telnet.psl myhost
In Windows 3.1, Windows for Workgroups, or NT 3.51: Use "Program Manager" to open the PowerTerm Group. You will see an icon for 'PowerTerm Telnet Sample'. Single-left-click on this icon to select it, then choose the File|Properties menu. Adjust the 'Command Line' as indicated above for the 'Target'. You can also rename this item by changing the "Description Line" as you wish, such as "PowerTerm telnet office".
Sometimes it is useful to be able to make a connection and have the program commence operation already in a designated emulation type with various saved parameters. This is easy to do. First you must select the emulation and other parameters you want and save them via the "Save Terminal Setup as" choice from the File menu. Example: sco.pts
From an iconIf you want to be able to include terminal type & settings from an icon, you will either need to copy this 'telnet2.psl' script into the Powerterm directory or click here to download it.
Then make a shortcut or program item and supply the following parameters on the target line:
example: ..... telnet2.psl xxx.pts myhost
From a script
For other users, you would just make a copy of your 'comm.psl' [for modem use], 'tn5250.psl' [for AS400 use], etc., and place this line:
open-setup-file xxx.pts
where 'xxx.pts' is the name of your new setup file. (This line must be the first line in the script.)
Then make a shortcut or program item (as explained above) and supply the needed parameter hostname.
example: ..... telnet.psl myhost
You can take advantage of an option to session open.
When session open cannot make a connection to the designated host, by default it pops up a message box on the screen saying that it has failed. The user proceeds by clicking the 'OK' button.
Sometimes, though, it is useful to be able to imbed session open statements in a script and be able to process the failure case differently than the success case. The session open no-message command permits this. Here is an example:
...
...
set comm-type telnet
set host-name $p1
result = [session open no-message]
if {$result == 0} {exit-emulator}
...
...
In version 5.1.2, there is a new feature that allows one to automatically install PowerTerm. There are 4 main components:
- Installation directory.
- Group name for PowerTerm.
- Option to auto install or prompt to confirm defaults.
- Create your own custom icons.
Here are the steps necessary to complete this implementation. The first step is
unzipping the PowerTerm file (We recommend WinZip). Do not run setup.exe, yet! Next,
double-click on
setup.cfg to modify it.
The default setup.cfg file (32 bit version) reads as follows:
C:\PTW32 (default installation directory)
ERICOM PowerTerm 5.1 (default program group name)
Example modification:
C:\PTW32 5.1.2
ERICOM PowerTerm 5.1.2
auto install
item= telnet.psl ACCT, "Connect to Acct"
On line 3 you will notice "auto install" , this will cause setup.exe to run
without user intervention. If this line is blank, setup.exe will run prompting the user to
confirm both the default install directory as well as, the program group.
On line 4 is an optional line, that will create an additional icon in the program group.
Note - Line 5 and greater can be used to create additional icon. The syntax is as follows:
item= <PowerTerm script> <script parameters(optional)>, icon name
Important Note: Please note there must be no
spaces between item and the "=" symbol.
After the "psl" file there must be a comma followed by the name of the
icon in quotes.
In our example, we demostrated how to connect to a host, in this case named sparc, by
calling
the telnet script and providing the host name. We also named the icon "Connect to
Acct".
Please save and exit setup.cfg. Winzip will prompt you to update the files. Choose [Yes]
and then close the archive.
You will need to modify the file called "telnet.psl" and include it inside the
ptw.zip (16 bit version), or ptw32.zip (32 bit version). Double-click on either
ptw.zip or ptw32.zip. Find telnet.psl in the
list and double-click on it to open with Notepad. Search for the line:
set session-name $p1
Delete it, and insert the following line in the same place:
window title "Connection to Acct"
Save the file and exit. Winzip will again prompt to update the archive, choose [Yes]. Exit out of Winzip. You are now ready to install your custom version of PowerTerm.
If you need to set the 'Terminal id' to a name which is not available in the pulldown list of the Terminal|Setup|General display, you can set this parameter on the Communications|Connect screen as a Telnet option. Additionally, you can use a PSL script command:
where 'NAME' is the string you want to use.
POWERTERM SCRIPT RULES
NO: if ( $variable == "hello" )
YES: if { $variable == "hello" }
NO: $var = $data
YES: var = $data
NO: i=1
YES: i = 1
YES: if { $data == 10 } {
i = 45
}NO: if { $data == 10 }
{
i = 45
}
use the 'expr' command which evaluates an expression, and the '[ ...]' facility which replaces itself with the result.
Thus, i = [ expr $i + 1 ]
or, use the 'incr' command which increments its argument (and because there is an assignment involved, no '$' is used.
i = [ incr i ]
.. or ..
i = [incr i 3 ] # increment by 3
as usual, there are 4 parts
- initialization
- test
- increment
- body statements
ALL 4 PARTS ARE individually wrapped in '{...}'
AND -- as indicated above -- the '{' beginning the body statements MUST be on the same line as the 3 earlier parts:NO: for (i=0; $i <10; $i++)
{ var = 45
}YES: for {i = 0} {$i <10} { i= [incr i]} {
var = 45
}
str = [wait 10 for "hi there"]
if {$str == "1"} {message "Hello to you"} else {message "no one home, $str"}
For an unconditional wait, the 'wait' command can be used in this manner:
wait 10 seconds # [always say 'seconds', even in 'wait 1 seconds']
wait 10 for "F1" at 23 70
This will wait 10 seconds for the string "F1" to appear in row 23, column 70.
PowerTerm lets the script writer create pop-up boxes for 3 purposes: messages, text input and password-type input.
This will popup a box whose optional title is title-text, with the content of text, and with an optional icon suitable for error, question, or info. The user presses the OK button to continue.
This will popup a box which includes a text input area. The box has text of text, and an optional title of title-text. You can assign the input to a variable as in:
data = [input-line "Enter Name" "My Title"]
This command is similar to input-line, except that the text which the user inputs is not echoed back to the screen. Rather, '*' symbols are displayed.
data = [getenv TMP]
if {$data == "bernie"} {message "yes"} else {message "no"}
get col is the command for the column
get row is the command for the row
The problem is that lines like:
...
...
result = [exec MYPROG.EXE]
if {$result == 0} {return}
message "The Program failed" ERROR
...
...Will not behave as expected because the script will execute the 'if {$result == 0} {return}' line immediately after starting MYPROG.EXE
The solution is to have the script create a temp file, and to modify MYPROG.EXE to delete this file as its last operation.
Then the script can be re-written as follows:
...
open "\\temp\\temp.dat" w
result = [exec MYPROG.EXE] #This will erase \temp\fred.dat when it completes
while { 1 == 1 } {wait 1 seconds
isfile = [file exists "\\temp\\temp.dat"]
if {$isfile == 0} {break}
}
if {$result == 0} {return} ## the files does NOT exist
message "The Program failed" ERROR
...
...
The proc must be defined before it is used [remember, the script language is an interpreter.] Here is an example of usage of proc.
proc say_hello x {
message $x
}say_hello Josephine
exit-emulator is the command
PowerTerm cooperates with Microsoft's WINAPPC.DLL or IBM's EHNAPPC.DLL (16-bit only) to make the connection to the AS/400. The connection to AS/400 via Microsoft SNA server is done through APPC, and can be handled by either Microsoft's WINAPPC.DLL or IBM's EHNAPPC.DLL. (You must have either Client Access or Microsoft SNA client installed and configured on your PC.)
To connect to your Microsoft SNA server with APPC using PowerTerm,
A major enhancement of Version 5.2 is the ability to name devices during 5250 sessions, you will now be able to print AS/400 jobs to a local PC printer, using all the controls available to printers connected directly to the AS/400. However, there have been problems depending on the AS/400 operating system. If the AS/400 has a CISC operating system, 3.2 will work. If the AS/400 has a RISC operating system, 3.2, 3.7, 4.1 or 4.2 will work. In any case, if the operating system is different from the supported version, a patch can be obtained from IBM to upgrade to a workable version.
Version 5.2 offeres automatic creation of Start Menu items - for instant connectivity to your hosts
It is very easy to capture screen data to a file. Simply use the Ascii File capture capability:
You may get a message from PowerTerm that a DLL file is missing. There are 2 possible reasons for this:
NOTE: It is necessary that the DLL correspond as a 16 or 32-bit program, to the version of PowerTerm you are running. (As example, a 16 bit WINAPPC DLL will not be compatible with a 32-bit PowerTerm.)
Menus can be hidden easily from the Options menu, but they will automatically be restored upon later invocations.
To permanantly remove them, you can place a line into a start-up script of the form:
Additionally you can bring menus back under script control:
To hide status bar, buttons and toolbar use the script commands:
set hide-status-bar on
set hide-buttons on
set hide-toolbar on
To restore status bar, buttons and toolbar say 'off' instead of 'on'.
Netscape Version 4.x
On the 'application' line,
type: "c:\ptw32\ptw32.exe" "c:\ptw32\netscape.psl" "%1"
where
The quotes are necessary and there should be 1 space in between each set of quotes.
Netscape.psl:
# This script only works if you are connect to a site that uses the URL plus a port number. For #example: telnet://info.rutgers.edu:805.
# If you connect to a school without a port number, i.e. telnet://info.rutgers.edu, then you will want to #take out the part of the script where we get the port number.
VALUE = $p1
COL = [string first "//" $VALUE]
COL = [incr COL 2]
STR = [string range $VALUE $COL 100]
#get the domain
COL = [string first ":" $STR]
if {$COL > 0} {COL2 = [expr $COL -1]
COL = [incr COL] PORT = [string range $STR $COL 100]} else {COL2 = 100} DOM = [string
range $STR 0 $COL2]
set host-name $DOM
if [info exist PORT] {
set telnet-port $PORT
}
session open
set session-name $DOM
Netscape Version 3.x
Under Netscape, go into Options|General Preferences|Apps. There are a couple lines for supporting applications. One is for 'Telnet' and the other is for 'TN3270'.
For example: c:\ptw32\ptw32.exe telnet.psl
For example: c:\ptw32\ptw32.exe tn3270nt.psl
Now from within PowerTerm, create those start-up files.
It is sometimes necessary to dial in to a remote host which then auto detects you and calls back to establish a connection. Here is a sample comm.psl script which automates this process, putting your modem into auto answer mode:
... ...
...
if {$pc <1} {
message "Script COMM.PSL must have at least 1 parameter"
return
}
set comm-type com
set port-number $p1
if [info exist p2] {
set baud-rate $p2
if [info exist p3] {
set protocol-type $p3
}
}
session open
run keys.psl
send "ATS0=1^M"
if [info exist p4] {
send "ATDT$p4^M"
}
This script assumes that the remote host auto detects you, initiates the hang-up and then calls back. Include any special modifications for your particular host at the end of the script. For example, if you need to wait 10 seconds after connecting and then hang-up on your end, include the following lines:
...
...
wait 10 seconds
send "+++ATH"
PowerTerm supports VT-type answerback.
As of Version 5.0.1, any menu command which can be executed with the mouse can be run from within a script. (Menu Commands which require typing or which product a choice-list cannot be run from scripts.)
The script command is: activate-menu-item <command>
where <command> is one of the following list:
| 3270Display | 3270Printer | 5250Display | AIXTERM |
| AT386 | About | ActivateMacro | AnswerBack |
| AutomaticCopy | Break | ClearDTR | ClearRTS |
| ClearScreen | Colors | Communication | Connect |
| Contents | Copy | CopyToFile | DG |
| Dial | Disconnect | Display | EditScript |
| Exit | FileTransferSetup | FormFeed | General |
| HideButtons | HideMenu | HidePowerPad | HideStatusBar |
| HideToolBar | HoldScreen | InputTrace | Keyboard |
| KeyboardMap | LineFeed | ModifyConnection | NewTerminalSetup |
| NewTerminalWindow | OnLine | OpenTerminalSetup | Paste |
| PauseScriptRecording | PowerPadSetup | PrintScreen | PrintSetup |
| Printer | ReceiveAsciiFile | ReceiveFile | ReceiveINDFILE |
| ReceiveKermit | ReceiveZmodem | Reset | ResetCommunication |
| ReverseScreen | RunFTP | RunScript | SCOANSI |
| SaveTerminalSetup | SaveTerminalSetupAs | ScriptCommand | SelectScreen |
| SendAsciiFile | SendFile | SendINDFILE | SendKermit |
| SendZmodem | SetDTR | SetRTS | ShowButtons |
| ShowMenu | ShowPowerPad | ShowStatusBar | ShowToolBar |
| StartAutoPrint | StartRecording | StartScriptRecording | StartTrace |
| StopAutoPrint | StopRecording | StopScriptRecording | StopTrace |
| Tabs | ToggleAutoPrint | ToggleRecording | ToggleScriptRecording |
| ToggleTrace | VT100, | VT220-7 | VT220-8 |
| VT320-7 | VT320-8 | VT420-7 | VT420-8 |
| VT52, | VT520-7 | VT520-8 | WYSE50 |
| WYSE60 |
PowerTerm does permit 'toggling' from one session window to another in a rapid, convenient manner.
The way to switch between session windows is:
<SHIFT> <CTRL> CHARACTER
where CHARACTER is a letter from A to Z, representing the first, second (and so on) window you have created.
PowerTerm is a fast program, and you can make it even faster by setting the Scroll speed to PAGE or UNLIMITED.
Scroll Speed is a parameter on the Terminal|Setup|Display menu.
PowerTerm has extensive National language support. To enable it:
FOR UNIX: stty -istrip cs8
If you are trying to connect via COM with DG emulation, it is important to note that you cannot use XONXOFF for the flow control. The sequences used for the XONXOFF flow control are actually used by DG for its emulation. In our experience, NONE seems to be the preferred setting for the flow control on a DG.
To enable TN3270E support, check the "Use TN3270E Protocol" box in the Communications|Connect screen.
PowerTerm works well under OS2. Take a 16-bit version and install it in the usual manner. (a:setup). Then:
You will now be able to start PowerTerm as simply as any other application, by clicking on its desktop icon.
To use PowerTerm's 32-bit LAT support, it is necesary to load DEC's PATHWORKS v7.0 onto your machine. For PowerTerm's 16-bit LAT support, it is necesary to load DEC's PATHWORKS v6.0 onto your machine. If you have a version of LAT that is older, you will need to upgrade your version. (You can get this from DEC.)
Postscript printing enables one to either print the data currently on the screen or use slave printing to print to a Postscript printer. In Version 5.2.2 Postscript printing is enabled by setting Slave Printer Data Conversion option to Graphics. This is done in the Terminal|Setup menu Printing tab. If this is the case then slave printing to a postscript printer will work whether Print Device is set to File, Device, or Print Manager. However, if the Slave Printer Data Conversion option is set to none and Print Device is set to File, slave printing will fail and PowerTerm will appear to be hung. Screen printing to a Postscript printer will be successful if Print Screen Data Conversion is set to Graphics in the Terminal|Setup menu Printer tab.
AutoPrinting is the ability to print (on a locally attached PC or network printer) whatever appears on the emulator screen. First you must engage the Start Auto Print option in the File menu or press the Auto Print button on the toolbar. Next, the material you want to print should be passed onto the screen of the terminal. When the file or series of lines has completely passed over onto PC screen, choose the Stop Autoprint option in the File menu or the press the AutoPrint button on the toolbar.
To use PowerTerm with MAINFRAME AND AS/400 API, one can use the Documented EHLLAPI interface to program PowerTerm functionality. Click here to receive a ZIP file of documentation in Microsoft 'Help' format. This can be directly opened with My Computer, for example, after you unzip it.
NOTE:
Ehllapi support is not included in the 32-bit version. It is included in the 16-bit version.
PowerTerm Home
Features Raves Prices
Download Upgrade FAQs
UniPress Home Page
UniPress Software, Inc.
800-222-0550 / 732-287-2100
PowerTerm is a product of Ericom Software Ltd.
Send mail to unimarket@unipress.com
See our full UniPress Software, Inc. Company Web page.
Last updated: March 30, 1998