Moving from KEA! (VT) to Reflection 14.x - An Overview

  • 7021695
  • 27-Apr-2006
  • 01-Apr-2018

Environment

Reflection for UNIX and OpenVMS version 13.0 through 14.x
Reflection for ReGIS Graphics version 13.0 through 14.x
KEA! 2000 version 5.0
KEA! 340 version 5.1
KEA! 420 version 5.1
KEA! 700/98 version 5.1 or earlier

Situation

This technical note provides an overview of common Reflection features and is designed to help users convert from KEA! (VT) to Reflection.

Resolution

How this Technical Note is Organized

The information in this technical note is organized into the following sections:

Installing Reflection to a Workstation

Follow these steps to install Reflection to a single computer.

  1. Log on to Microsoft Windows using an account with Administrative or Elevated privileges and start the Reflection installation.
  2. Click Install Reflection.
  3. Choose a Reflection product and click Workstation Install.

Note: Reflection displays the “Optional Upgrade to Windows Installer†dialog box at this time and offers to update your version of the Microsoft Installer (MSI). If this service must be upgraded, you will need to restart the machine and restart the Reflection setup program. When you return to this screen, click Workstation Install and continue your installation of the Reflection product. You can skip this step if you already have the minimum version required to install Reflection (v2.0).

  1. Proceed with the installation until you reach the Destination Folder dialog box. In the Destination Folder dialog box, select the Custom installation type, and then click Next.

Note: The Reflection Administrator’s Toolkit should be installed to a folder different from the Reflection product.

  1. The Select Features dialog box opens:

Use this dialog box to select the features and subfeatures you would like to install. To determine which subfeatures are set to be installed, click the + button to open the feature tree. (By default, some subfeatures are disabled when the parent feature is enabled.)

Note for Kea340 users: If you are migrating from Kea340, select ReGIS Graphics under Host Access > HP, UNIX & OpenVMS.

To view installation options, click the Reflection feature and then choose an installation type as described below:

Will be installed/Entire feature will be installed on local hard drive: These choices will install some or all of the features you select to your computer.

Will be installed/Entire feature will be installed to run from network: These choices will install the minimum files required to run some or all of the features from an Administrative Installation Point.

Feature will be installed when required: The feature will not be installed at this time. When components of the feature are first invoked, the Windows Installer service runs, and the feature is installed to the local drive.

Entire feature will be unavailable: The feature will not be installed.

  1. Click Next to continue and follow the online prompts to complete the installation.

For more detailed information about installing Reflection products, see the Installation Guide at https://support.microfocus.com/manuals/rhpuo.html.

Using Settings Files

Reflection saves all connection settings and display, toolbar, menu, macro, keyboard, and mouse setup customizations in binary settings files. A Reflection settings file is similar to a KEA! config file (KTC).

To create a new settings file, modify your Reflection configuration, and then click File > Save. Once you save a settings file, you can restore your Reflection configuration by opening the settings file.

Tips for Working with Settings Files

Here are some tips for using Reflection settings files:

  • By default, Reflection places settings files in a Reflection folder located in your Windows personal document folder. In version 14.x, the settings file will be located in an Attachmate\Reflection folder in your Windows personal documents folder.
  • The three-character file extension for a settings file depends on the Reflection product you are using:
Reflection for HP with NS/VT uses *.r1w
Reflection for UNIX and Digital uses *.r2w
Reflection for ReGIS Graphics uses *.r4w
Reflection for IBM uses *.rsf.
  • When you open a settings file, Reflection automatically makes a connection. (It is possible to change this default behavior.)
  • Use the Shortcut button in the Save Settings dialog box to automatically create Microsoft Windows shortcuts when you save your settings files.
  • On the Setup menu, click View Settings to see a comprehensive list of your current Reflection settings.
  • When creating a settings file, you may want to begin with Reflection’s default settings. Either of the following techniques returns you to the default configuration:
    • On Reflection’s File menu, click New Session.
    • On Reflection’s Setup menu, click Defaults.
  • A session started with defaults, which has not yet been saved, displays "Untitled" on the Windows title bar. Once the settings are saved, the settings file name replaces "Untitled" in the title bar.

Starting Reflection using a Settings File

There are a number of ways to launch a Reflection session. Typically, you will want to open a settings file that contains the configuration information you need. The following actions launch Reflection with a settings file already loaded:

  • Double-click a settings file shortcut. You may have shortcuts configured on your desktop or in the Windows Start menu.
  • Browse for a settings file using the Windows Explorer and double-click the file icon.
  • Use the Open icon, shown in the image below, to view a list of recently-opened files (click the down arrow), access the Open Settings dialog box (click the folder or the down arrow > More), or start a new session (click the down arrow > New Session).
1895_1.gif

Setting up the Host Connection

Reflection provides numerous network connection and terminal emulation settings that allow you to customize your connections.

Changing Network Connection Settings

The following Reflection network options are configurable from the Connection > Connection Setup dialog box.

  • Host name or IP address.
  • Connection protocol: Telnet, VT-MGR, Rlogin, Secure Shell, or LAT.
  • SOCKS, SSL/TLS, and Kerberos (click Security).
  • Advanced connection options, such as TCP port number, session limits, and trace negotiation (click More Settings).

Changing the Terminal Emulation Settings

The following terminal emulation settings are configurable from the Setup > Terminal dialog box.

  • Terminal type, such as VT500-7, SCO-ANSI, WYSE 50+, IBM 3151, and more.
  • Terminal ID, such as VT220, VT320, VT520, and more. This setting determines the response that Reflection sends to the host after primary device attributes (DA) request and the host know what terminal functions it can perform.
  • VT backspace key. This option allows you to configure the function that your Backspace key sends. For OpenVMS, this option should be set to Delete. For most other hosts, it should be set to Backspace (the default).

For example, to make a Telnet connection with VT100 emulation:

  1. Start Reflection.
  2. Click Setup > Terminal. On the Emulation tab, select VT100 from the Terminal ID menu, and the click OK.
  3. Click Connection > Connection Setup. Enter your Host name, and then click Connect.

Tips for Getting Connected

Here are some tips for getting connected:

  • When you open a settings file, Reflection automatically makes a connection. (It is possible to change this default behavior.)
  • If you’re not connected, you can press n to make a connection.
  • The Connect/Disconnect toolbar button shows the current connection status.

Customizing your Session

Reflection provides powerful customization features that can make using your host application faster and easier. For instance, you can customize toolbars, assign keystrokes or mouse actions to terminal keys or functions, customize menus and commands, and change the color and appearance of your host application in Reflection.

Toolbar

Four pre-defined toolbars are available for quick access to frequently-used commands. You can modify the toolbars, or you can create custom toolbars to launch macros, execute commands, or send text strings. Toolbars can be attached to any of the terminal window margins or floated in a separate window, similar to the KEA Smartpad feature.

The default toolbar

The default toolbar is displayed the first time you start Reflection. The buttons are as follows:

1895_0.gif

Opens a Reflection untitled session.

1895_1.gif

Opens the Open Settings dialog box (click the folder) or displays a list of recently-opened files (click the down arrow).

1895_2.gif

Saves the configuration to the current settings file. If there is no settings file in use, this button opens the Save Settings File dialog box.

1895_3.gif

Opens the Print dialog box, where you can set up a printer and print a file.

1895_4.gif

Opens the Find dialog box that enables you to search for a word or phrase in the terminal window and display memory.

1895_5.gif

Copies selected text to the Clipboard. Data remains in the Clipboard until you overwrite it (by copying something new to the Clipboard) or until you exit Windows.

1895_6.gif

Pastes text from the Clipboard to the cursor location.

1895_7.gif

Connects to the host. If no host has been configured from a settings file or in the Connection Setup dialog box, Reflection prompts for a host name.

1895_8.gif

Opens the Transfer dialog box, where you can transfer data between your PC and the host.

1895_9.gif

Opens the Run Macro dialog box, where you select a macro to run.

1895_10.gif

Starts recording your actions in a macro, which you can run later.

1895_11.gif

Decreases the size of Reflection's terminal window with each click of the button.

1895_12.gif

Returns Reflection's terminal window to its default size.

1895_13.gif

Increases the size of Reflection's terminal window with each click of the button.

1895_14.gif

Causes Reflection's Terminal Window to display full screen, without status bar, menu bar, or toolbar.

1895_15.gif

Turns the mouse cursor into a Help pointer. When you use the Help pointer to select a menu command or click part of the terminal window, Reflection displays information about that command or item.

Creating a custom toolbar

To create a custom toolbar with a button for changing the host functions associated with specific keys on your PC keyboard:

  1. Click Setup > Toolbar.
  2. On the Toolbars tab, click New. Specify a name for the toolbar, such as “Exit.â€
  3. On the Settings tab, select an option for Location. As you change the Location setting, the position of the toolbar changes on your screen.
  4. On the Predefined Buttons tab, select Categories > Setup, and then drag the Keyboard Map Setup icon to your new toolbar.
  5. Click Close to return to the terminal screen.

Recreating the Capture Incoming Data feature

KEA! (VT) provided an option to capture incoming data and replay captured data. For information about recreating this behavior in Reflection, see KB 7021702.

Mergetool Available for Migrating from KEA SmartPad to Reflection Toolbar

If you are converting the KEA SmartPad feature to a Reflection for UNIX and OpenVMS (RUO) toolbar, an unsupported mergetool, KEA2RUOmergetool-V1.3b-English.zip, is available from the Attachmate Support site. This tool was created to ease the migration from KEA SmartPad and Menu configurations to RUO toolbars or menus.

Note the following:

  • This tool converts only SmartPads that are mapped to a sequence (not macros or groups of SmartPads).
  • This tool is provided as is and is not supported by Attachmate. Use this tool at your own risk.

Keyboard Mapping

Customizing your Reflection keyboard enables you to associate keystrokes with actions, a process known as keyboard mapping. You can customize your keyboard to match a familiar product, to improve interactions with your host application, or to speed up your work.

Access keyboard mapping

To access keyboard mapping, click Setup > Keyboard Map to open the Keyboard Map Setup dialog box.

Use the Keyboard Map Setup dialog to map PC keystrokes to commands or to see how your keyboard is currently mapped.

View current key mappings

Different colors are used for different purposes. Initially, all keys are either light gray, teal, or dimmed:

  • Gray keys are not currently mapped.
  • Teal keys are currently mapped but their mappings can be changed.
  • Keys that are dim or dim when you choose one of the function keys (ALT, CTRL, or Shift) are currently mapped and this mapping cannot be changed.

To see how a key on the PC is currently mapped, click the key on the PC keyboard representation. If the key is mapped to a terminal key, a key on the terminal keyboard representation turns dark gray. Use the same procedure to see what PC key is mapped to a specific terminal key. For example, de-select any keys that are currently selected (dark gray) on the PC keyboard representation, then select a key such as DO on the terminal keyboard. The PC keystrokes generated by the DO button will turn dark gray on the PC keyboard representation.

Map a key

Here is an example that maps Shift+F12 to the DO key:

  1. On the representation of the PC keyboard, click Shift and then click F12.
  2. In the Action radio-buttons, select Terminal keyboard (the default).
  3. On the representation of the terminal keyboard, click DO, and then click Map to associate these keys. Or, click and drag the DO key from the Terminal keyboard representation and drop it on the PC keyboard representation's F12 key.
  4. Click OK to save your changes, or Cancel to exit without saving.

You can also map a PC key to transmit a string, launch a Reflection Macro, or execute a command. A command is a Reflection built-in command that controls menu items, terminal keys, or single VBA commands.

Remove a key mapping

To Remove a mapping, on the representation of the PC keyboard, select the mapped key or combination of keys, and then click Remove.

Converting KEA! keyboard maps to Reflection keyboard maps

The following section provides tips about converting KEA! keyboard maps to Reflection maps.

  • KEA! keyboard mapping information is stored in the KEA! config file (.ktc). By default, it is located at C:\Documents and Settings\<user>\Application Data\Attachmate\keavt.

Note: This may be a hidden folder in Microsoft Windows.

  • KEA! config files are in text format and can be opened in Windows Notepad.
  • KEA! mappings can be found in the section that starts Keyboard.Mapping(.
  • Each mapping is formatted as follows:

PCKey="<name of key>", MapTo="<option>", Value="<parameters>"

  • To verify the PCKEY name in KEA!, click Options > Keyboard > Mapping, and press the key in the PC Key Field.
  • In Reflection, KEA! sequences can be mapped to Send Text Actions.
  • When mapping a KEA! sequence, the caret (^) symbol is used as an abbreviation to represent control characters. In Reflection, these symbols can be inserted into text strings by selecting the special character from the Insert a Special Character drop-down list. Common abbreviations that use the caret symbol are ^[ for Escape, ^I for Tab, and ^H for backspace.

For example, if the sequence mapped in KEA! is:

PCKey="Alt+F1 [870]", MapTo="Sequence", Value="^[[037q"

Follow these steps to map Alt+F1 in Reflection:

    1. In the Keyboard Map Setup dialog box (Setup > Keyboards), on the representation of the PC keyboard, click ALT and then click F1.
    2. Select the Send Text Action radio button.
    3. On the Insert a special character drop-down list, select ESC.

The characters EC will be displayed in the Text to send field. This represents the Escape characters: ^[

    1. In the Text to send field, after the EC, enter: [037q

The full text should read: EC[037q

1895_16.gif
    1. Click Map, and then click OK to save your changes (or Cancel to exit without saving).

Customizing Menus and Commands

You can customize the Reflection menus by removing individual menu items, hiding the menu bar, adding menu items that perform standard Reflection tasks, or by creating menu items to run your own custom macros. To access this feature, click Setup > Menu.

For example, to remove the Keyboard Map command from the Setup menu, follow these steps.

  1. Click Setup > Menu.
  2. Click the plus sign (+) next to the “Setup†menu icon to expand the list of Setup menu commands.
  3. Select the “Keyboard Map†command, and then click Remove.
  4. Click OK to return to the terminal screen. Click the Setup menu to verify that Keyboard Map no longer appears.

Transferring Files and Data

Use Reflection to transfer files and data to and from a host computer using the Reflection drag-and-drop interface. This interface is similar to the KEA! Shuttle.

The default protocol is the Attachmate proprietary protocol, WRQ/Reflection. The host transfer program for this protocol is provided with all copies of Reflection and must be uploaded before you can use the WRQ/Reflection protocol. For more information about uploading the WRQ/Reflection file transfer protocol, see KB 7021482.

Reflection also supports several public domain protocols such as FTP, sFTP, Zmodem, Xmodem, and Kermit. KEA! supports several of these protocols as well. Reflection does not support Ymodem.

This example walks you through the process of transferring a file using the FTP support built into Reflection.

  1. Make sure you are connected to a host that supports FTP and log in using a valid user name and password.
  2. Click File > Transfer to open the File Transfer dialog box.
  3. For Protocol, select FTP.
  4. In the File Transfer dialog box, click Show Host Files to view sample files on the host. Because FTP uses a separate connection from your terminal connection, you will be prompted for your user name and password again.
  5. For If file exists, select Rename.
  6. Select a file to transfer and then drag and drop the file from the Local listing to the Host listing or vice versa. Or click the appropriate Transfer icon in the Transfer dialog box.
  7. Click Close to return to the terminal screen.

Reflection FTP Client

Reflection for UNIX and OpenVMS provides FTP file transfer support, but if you would rather transfer files using a dedicated FTP file transfer interface, you can access the Reflection FTP Client from the Programs > Reflection menu.

Printing

Reflection supports a variety of print options such as printing the display screen, VT host-initiated printing, and user-initiated printing.

Printing the Display Screen

To print what is displayed on the screen, click File > Print. In the Print dialog box, you can choose to print the screen or the content of the sessions display memory.

Host-Initiated Printing

Many VT host applications can print to printers that are not attached to the host. This type of host-initiated printing may be called slave printing, logging, pass through printing, auto-print, or controller printing.

Typically, host-initiated printing involves selecting print from a host menu. To send a print job, the host transmits escape sequences to the terminal or terminal emulator, which signal that the print job should be forwarded to a printer. Reflection supports host-initiated printing and forwards the print job to the Windows default printer.

To change where the print job is sent, click File > Logging.

All host initiated printing is output to the device specified under “Log output to.â€

To select a different Windows printer, click Print Setup and choose the appropriate printer from the Printer drop-down menu on the Print Setup dialog box. Or, you can print to a file by selecting Disk and specifying a file for output.

Note: The “Serial device†option is not used for normal printing, even if you have a serial printer attached to your machine. This option is only used for devices on serial ports, such as bar code readers, which need to send information back and forth between the host and the device, through Reflection.

User-Initiated Printing

In addition to host-initiated printing, you can also manually enable logging or Auto Print, which prints each line of text as soon as a line feed is received.

To enable logging:

  1. Click File > Logging.
  2. Select the "Logging on" check box, in the top-left corner of the Logging dialog box.

To disable logging:

  1. Click File > Logging.
  2. Clear the Logging on check box.

Tip: Make certain that you only clear the Logging on check box and not the Printer check box, under Log output to, when you turn off logging.

To make enabling and disabling logging quicker, you may want to create a button or map a key to toggle logging (Auto Print) on and off, rather than opening and closing the Logging dialog box each time.

To create a button to toggle logging on and off:

  1. Click Setup > Toolbar, and click the Predefined buttons tab.
  2. In the Categories list, click File.
  3. Under Functions, click and drag the "Logging" icon to any position on your Reflection toolbar. (This button is predefined with the Menu Command ToggleLogging.)
  4. Click Close.

Once created, each time you click the Logging icon, the logging state is toggled.

Automating Reflection

Reflection provides you with powerful tools for automating your sessions. Tools like the macro recorder and event scheduler require no programming knowledge. In addition to these tools, Microsoft Visual Basic for Applications (VBA), which is included with Reflection, provides access to an industry-standard scripting language and a full-featured development environment.

Macro Recorder

The macros you create in Reflection can be associated with a menu item, toolbar button, event, or keystroke. You can also customize VBA macros by editing them with the Microsoft Visual Basic Editor.

Existing KEA! macros and scripts should be re-recorded. Simple scripts can be re-recorded using the Reflection Macro recorder. More complex scripts should be rewritten in the Reflection Microsoft Visual Basic Editor.

This section walks you through creating two sample macros: a file transfer macro and an automated login macro.

Record a file transfer macro

This example shows how create a macro that performs a file transfer to an FTP host.

  1. In Reflection, make sure you are connected to a host that supports FTP and log in using a valid user name and password.
  2. Click Macro > Start Recording.
  3. Repeat the steps for transferring a file in the Transferring Files and Data section above.
  4. Click Macro > Stop Recording. In the Stop Recording dialog box:
    1. In the Macro name field, enter a name for your macro. (Macro names cannot include spaces and must begin with a letter.)
    2. Under Macro Options, select Create a button, and click OK.

A new button appears on the active toolbar, labeled with the name of your macro. At this point, you can run and test your macro, but it has not yet been saved.

  1. Click File > Save to save your macro. Your macro will be saved with the current settings file.
  2. To run your macro, click your macro’s toolbar button. The file transfer progress indicator appears, indicating that a file is being transferred. (You can also run a macro using the Macros command on the Macro menu.)

Record a login macro

This example shows how to create a login macro.

  1. In Reflection, click Macro > Start Recording.
  2. Connect to your host and enter responses to the host's prompts for logging on.

Note: Unless you change the value of Save Passwords settings (Setup > View Settings), Reflection will not include your password in the recorded macro.

  1. Click Macro > Stop Recording (or click the stop recording button on the recording toolbar). This opens the Stop Recording dialog box.
  2. Because the steps you recorded included making a connection, Reflection automatically suggests the default name Login for your macro and selects the check box "Make this the connect macro." Click OK to accept these defaults.

To test your login macro

Follow these steps to test your login macro.

  1. Log off from the host.
  2. Press Enter to make a new connection. Because the macro you recorded is a connect macro, it will run automatically as soon as the connection is made. You should see a prompt for your password. After you enter a password, the Login macro will complete execution and you should see the host prompt which indicates you are successfully logged on.

If the connection does not succeed, stop the macro by clicking Macro > Stop Macro. Disconnect from the host and re-record the login Macro following the steps above. You will be prompted to discard your previously recorded Login Macro and use the newly recorded macro.

Save the macro

Macros are stored as part of the Reflection settings file and are not saved until you save your settings file. Click File > Save to store.

Event Scheduler

Using Reflection’s Events feature you can associate events, such as “At a specific time of day,†with actions, such as transferring large amounts of data. The event is the trigger; the action is how Reflection responds.

The following example shows how to associate a VBA macro with a specific time to illustrate how you could use this feature in your own environment to schedule events during off-peak hours.

  1. Click Setup > Events.
  2. Click New.
  3. For Event type, select At a specific time of day.
  4. For Action, click Macro. Click Browse to select your macro.
  5. Select a macro and click OK.

VBA Editor

If you are familiar with Visual Basic for Applications, you can edit a recorded macro or create a new one using the Visual Basic Editor. To access the editor, click Macro > Visual Basic Editor. Or, to edit an existing macro, click Macro > Macros, select your macro, and then click Edit.

The Reflection API is extensively documented in the application programming help and in the User Guide.

Security

Reflection for UNIX and OpenVMS provides the following Secure Shell encryption (SSH), SSH/TLS Telnet encryption, and Kerberos client features. To access the security features, click Connection > Connection Setup, and then click Security.

Secure Shell encryption

  • Connections to SSH1 and SSH2 protocol servers
  • Port forwarding for TCP/IP ports through secure channel
  • Password, user key, and Kerberos authentication
  • SSH key agent and key generation and conversion (RSA-1, RSA, and DSA) utility
  • scp and sftp file transfer utilities
  • PKI support in the Reflection Secure Shell Client
  • SSH command-line utility
  • Standard SSH configurations

SSL/TLS Telnet encryption

  • Integrated SSL 3.0 and TLS 1.0 Telnet encryption through Reflection OpenSSL Client

Reflection Kerberos Client

  • Secure authentication
  • Datastream encryption (DES and 3DES) for Telnet and FTP
  • Supports ticket forwarding and renewal
  • Compatible with Microsoft and Leash32 credentials caches
  • Standard Kerberos configurations

Additional Information

Legacy KB ID

This document was originally published as Attachmate Technical Note 1895.