PRO/5 Editing

Overview

There are several places in PRO/5 where the user may interactively edit information on the screen:

  • The edit window used by the EDIT verb

  • The INPUTE verb

  • The INPUTN verb

  • The _edit utility

It is desirable to use the same editing commands in all cases. It is also desirable to be able to define these editing commands in order to accommodate foreign language keyboards or "funny" operating systems. The STBL() function may be used to configure PRO/5's editor. The default editing commands are listed here:

Key

Function

^M (ENTER)

Accept input and exit with CTL=0.

^L

Move right.

RIGHT ARROW

Move right.

LEFT ARROW

Move left.

^H (backspace)

Move left - delete character if at end of input.

^K

Move up.

UP ARROW

Move up.

DOWN ARROW

Move down.

^J (linefeed)

Move down.

^I (tab)

Next tab stop.

^B (backtab)

Previous tab stop.

^U

Page up.

^F

Page down.

ESCAPE

Restore data.

^T

Toggle insert/overstrike mode.

^A

Beginning of line.

^Z

End of line.

^W

Clear to end of line.

^X

Delete character.

^E

Insert character.

^D

Delete line.

^O

Insert line.

^R

Refresh display.

The above list is not complete. There are other edit functions supported by PRO/5. Defining a global set of editing commands is, at best, difficult. Some of these commands are dependent on the current values loaded into function keys and the ability to distinguish between certain keys. For example, some keyboards send the same character for both the backspace key and the left arrow key. Some fine tuning may be necessary to use all editing features. See STBL Formats.