Add the RM/COBOL Keyboard Configuration

Add a keyboard configuration file to the project that sets the typical function key operations when executing ACCEPT statements in an RM/COBOL environment.

Visual COBOL ships with a keyboard configuration intended for modernizing RM/COBOL applications.

Note: On some UNIX platforms, the keyboard configuration file that is supplied may not be compatible with the local termcap file in use. You will be able to tell if this is the case when you run the application, and key-presses are not performing the required actions; in which case, you must use the Keyboard Configuration Utility (keybcf) to correct the supplied version of cobkeymp.
  1. In your file system, browse to $COBDIR/etc/rm.

    The directory containing cobkeymp appears.

  2. Drag this file into Eclipse, and drop it on the project name when the cursor changes to .

    The File Operation dialog box appears.

  3. Ensure Copy Files is selected (so that a copy of the original file is created in the project, and not simply a link to the original file), then click OK.

    A copy of the file is added to the project.

  4. Right-click your project in the COBOL Explorer view and select Properties.

    The Properties for <project-name> dialog box appears.

  5. Select Micro Focus > Build Configurations > Events.

    The Events appear in the right-hand pane.

  6. In the Post-build event command line box, on a new line, type cp ${basedir}/cobkeymp ${basedir}/New_Configuration.bin/cobkeymp, then click Apply.
    Note: If your project builds to another location other than the default New_Configuration.bin directory, you will need to change the above command accordingly.

    If a prompt appears informing you that files already exist in the specified location, click No.

  7. Click OK.