12   
IBM 3151 Emulation

This chapter describes features of the IBM 3151 terminal emulation.

Introduction

The IBM 3151 emulation is based on the native mode of the IBM 3151 Model 11 terminal. The emulation is configured using the IBM 3151 Settings dialog box which is described in the Setup Menus chapter. The display is set to 24 rows by 80 columns by default, but you can select one of four display formats from the IBM 3151 Settings dialog box:

                                               24 rows x 80 columns
                                               25 rows x 80 columns
                                               24 rows x 132 columns
                                               25 rows x 132 columns

Session Configuration

WBT Mode

This section describes the basic procedure for creating a session configuration when the terminal is in WBT mode. The options available are described in detail in chapter 2.

1.   Click the Configure tab in the Terminal Connection Manager then click the Add button to display the New Connection dialog box.

2.   Select Terminal Emulation Client and click OK. The Terminal Emulation Client Connection Wizard - Connection Information dialog box will be displayed.

3.   Enter a name which will identify this session configuration for future selection in the Connection Name box.

4.   Select the IBM 3151 terminal emulation in the Emulation list box.

5.   Click Next to display the Host Information dialog box.

      For a TCP/IP connection, click the TCP/IP button, enter the name or internet address of the host computer in the Host Name box, then click Advanced for additional Telnet options. Refer to the TCP/IP Connection Settings section in chapter 2 for details.

      For a serial connection, click the Serial button, specify the communications port in the Connect To box, then click Advanced for additional serial options. Refer to the Serial Connection Settings section in chapter 2 for details.

      Make the relevant selections then click OK to return to the Host Information dialog box, then click Next .

6.   The following four dialog boxes provide further configuration options which are described in chapter 2. Click Next to advance through the dialog boxes.

                                                Automate Login Process
                                          Printer Port Settings
                                          GUI Overrides
                                          Aux Port Settings

7.   When you have made your selections, click Finish to return to the Terminal Connection Manager.

8.   In the Terminal Connection Manager, display the Connections list, select the session name you specified earlier in step 3, then click the Connect button.

Non-WBT Mode

This section describes the basic procedure for creating a session configuration when the terminal is not in WBT mode. The options available are described in detail in the Setup Menus chapter.

1.   Display the Settings menu from the command bar and select Emulation... to display the Emulation Settings dialog box.

2.   Select the IBM 3151 terminal emulation in the Alpha Emulation list box.

3.   Display the File menu from the command bar and select New Connection to display the New Connection dialog box.

4.   Select the type of host connection required in the Type list box.

      For a TCP/IP connection, select TCP/IP, enter the name or internet address of the host computer in the Connect To box, then click Configure for additional Telnet options. Refer to the TCP/IP Connection Settings section in chapter 2 for details.

      For a serial connection, select Serial, specify the communications port in the Connect To box, then click Configure for additional serial options. Refer to the Serial Connection Settings section in chapter 2 for details.

5.   When you have specified the required settings in the New Connection dialog box, click the Connect button to make the connection.

Note:   You can save these settings as a connection template using the Save Session As dialog box. Refer to the Setup Menus chapter for details.

The Status Bar

Ths status bar along the bottom of the display shows the status of various operations.

                                    1            2          3             4

Field 1:        (rrr,ccc) indicates the current row and column position of the cursor.

Field 2:        INSERT indicates that Insert mode is active when the Insert key is pressed or when the Insert Character command is received. Note that the message will not be displayed if the Insert Character option is not set to Mode. Insert mode is exited by pressing the Insert or Reset key.

Field 3:        Indicates the current operating mode.

                    In BLOCK mode, keyboard entered data is displayed and processed locally, allowing you to edit it before a block of data is sent to the host.

                    In CHAR mode, keyboard entered data is sent simultaneously to the host and the display.

                    In ECHO mode, keyboard entered data is sent only to the host. The host is then responsible for returning the data to the display.

Field 4:        HOLD SCREEN indicates that the Hold Screen key has been pressed to suspend screen update. Press Hold Screen again to enable screen update.

                    INVALID KEY appears when you press an invalid key.

                    KEYS LOCKED appears when the keyboard is locked. The keys will be unlocked when the Keyboard Unlock command is received or when the Cancel key is pressed.

                    NUMERIC indicates the cursor is located in an unprotected numeric field.

                    PRINTING indicates that data is being sent to the printer.

                    SENDING indicates that data is being sent to the host.

                    WRONG PLACE appears when you press an invalid key in a protected field or field attribute character position. It is also displayed when you try to insert a character or line in a screen already full when the Forcing Insert option is set to Off.

If two or more messages are sent to a particular field, then the message with the highest priority will be displayed. Messages in field 4 are displayed in the following order:

                                                  HOLD SCREEN
                                                  SENDING
                                                  PRINTING
                                                  KEYS LOCKED
                                                  INVALID KEY
                                                  WRONG PLACE
                                                  NUMERIC

Keyboard Mapping

The following illustration shows where IBM 3151 keyboard functions are mapped to keys on the 101/102 key Enhanced AT keyboard layout. Special key functions that are provided on the IBM 3151 keyboard can be mapped to any key on your keyboard by using the virtual key names listed in the Define Keyboard Macros dialog box.

Enhanced AT Keyboard Layout

Defining Function Keys

The keys mapped as F1 through F12 can be redefined from the keyboard or by the host. The function keys can store up to 128 characters between them and can include escape sequences and ASCII control characters in addition to character strings. Here we describe how to define a function key from the keyboard.

1.   Display the function key menu by pressing the keys Shift + Esc.

2.   Specify the function key to be defined by entering a two-digit number in field A, for example, 01 for F1, 12 for F12, then press Enter. Field B will display the current definition of the function key.

3.   In field B, enter the new definition for the function key. This can include a character string, escape sequence or control characters.

      A control character is entered by typing the keyboard equivalent. For example, the CR (carriage return) character is entered by pressing Ctrl + M. Refer to the Character Sets appendix to find the keyboard equivalents of other control characters.

      The following example shows the definition entry for the F1 key so that it displays New definition then performs a carriage return when pressed:

      You can erase the character at the current cursor position by pressing the keys Ctrl + 2. If you want to restore the default definition, press the Clear key while the cursor is in field B.

4.   Press the Send key to store the key definition. The function key menu will be cleared to allow you to enter the next key definition. If you do not wish to save the definition, press Ctrl + Shift + Esc instead of Enter.

      Note that the function keys can store a maximum of 128 characters between them. When this number is reached or exceeded, field A will start blinking and any characters following the 128th character will be discarded.

5.   Repeat steps 2 to 4 until you have finished defining function keys.

6.   To exit from the function key menu, press Ctrl + Shift + Esc.