Control Keys and Predefined Functions

From BR Wiki
Jump to navigation Jump to search

Universal Control Keys

Since keyboards vary widely in the types of keys that are available and in the ways the keys are labeled, all of Business Rules operations have been assigned to universal keys or key combinations that may be used on any keyboard. This standardization across all versions of Business Rules minimizes keyboard differences for programmers, trainers and installers who often work with different keyboards.
Many of these keys may be remapped to other functions. See the KEYBOARD specification in the BRConfig.sys chapter for information about remapping keys.

Predefined Function Keys

Certain predefined operations, which can save a great deal of programmer typing time, have been assigned to some of the keyboard's function keys. These predefined operations operate only when Business Rules is in READY mode-not when a program or procedure is running.

The following section describes the actions of the predefined function keys. It is recommended that you avoid using the F9 and F10 keys in command mode, as these keys may be assigned predefined operations in future releases of Business Rules.

F1 Initiates Help Processing when no program is active.
F2 Recalls the previously executed commands one at a time. The maximum number of commands to be recalled is controlled by the MAXRECALL specification in the BRConfig.sys file.
F3 Recalls the most recently executed command. When used after the F2 key, it also resets the MAXRECALL pointer to the first command that can be recalled with the F2. (only the pointer is moved no commands are lost)
F4 Displays a NEWPAGE on the command. (24th) Line of the screen. May be used to quickly execute a NEWPAGE command (press F4 then <CR> or to insert the NEWPAGE keyword into a program line.
F5 Display LIST 1- on the command line of the screen. Press F5 then<CR> to display and execute the command.
F6 Display LIST 99999- on the command line of the screen. Press F5 then<CR> to display and execute the command.
F7 {\b Mark:} Pressing F7 causes Business Rules to mark the starting point of the text to be copied or moved. Business Rules highlights the starting position and mark is said to be active when F7 is pressed.
' {\b Copy:} Pressing F7 when mark is active causes Business Rules to copy the marked text into a scratch buffer. To help you confirm that the marked text has been copied, the message "x Bytes Saved" (where "x" represents the number of bytes) is displayed in the message area of the status line.
F8 Move: Pressing F8 when mark is active causes Business Rules to move the marked text into a scratch buffer, deleting the marked text from the current line. To help you confirm that the marked text has been copied to the buffer, the message "x Bytes Saved" (where "x" represents the number of bytes) is displayed in the message area of the status line. Note that Business Rules does not enter the change to the current line. If a portion of the current line was deleted, you must press <ENTER> to save the deletion. If you wish to delete the entire line, you must still use the DEL command.
' Paste: Pressing F8 when mark is not active causes Business Rules to insert the buffered text at the current cursor position. There is no limit to the number of times that buffered text may be pasted into a program.


Note: Other function keys have special meanings to the help facility and are remapped during Help Processing. See the Help Chapter for more information on those.

Esc

Now acts as a command key 99.

PgUp and PgDn

These keys will now return FKEY values of 90 and 91 during program input. Previously these keys operated the same as the up and down arrows during program input. Please inform your customers about this change in case they are using these keys instead of the arrow keys. If necessary, PgUp and PgDn may be remapped (in BRConfig.sys) to operate as arrow keys.

Control Key Navigation

(Ctrl is represented by the { ^ } symbol)
^A BREAK ( this was ^C ) and enter ATTN (Attention) mode. When the CTRL+A is pressed while HELP mode is active, Business Rules will return to the program and enter ATTN mode as it does when HELP mode is not active. Previously it would just exit HELP and return to program processing.
^B PgUp (back)
^C COPY (copy to clipboard). When Ctrl+C is pressed while HELP mode is active, Business Rules will now return to the program and enter ATTN mode. Previously it would exit help and return to program processing.
^D DELETE
^E END FIELD
^F PgDn (forward)
^G BACKTAB
^H BACKSPACE
^I TAB
^J NEXT FIELD
^K PRIOR FIELD
^L RIGHT ARROW
^M ENTER
^N LEFT ARROW
^O FIELD MINUS
^P PRINT SCREEN. You can now redirect the Ctrl+P (print screen) output to a file/printer of your choice. See "SUBSTITUTE" in the BRConfig.sys Chapter for more information.
^Q TOGGLE INSERT MODE
^R UP FIELD (rise)
^S TOGGLE HOLD MODE (stop). The HOLD function is performed by CTRL-T and, when permitted by the terminal protocol, by Ctrl+S.
^T DOWN FIELD ( this once was ^V ) (Can also be the HOLD key on certain terminals) This key may be remapped (in BRConfig.sys) with the KEYBOARD specification.
^U FIELD PLUS
^V PASTE CLIPBOARD CONTENTS
^W HOME
^X CUT TO CLIPBOARD. In version 3.8, Ctrl+X repainted the screen.
^Y HELP
^Z RESTORE FIELD
^[ ESCAPE. The ESC key now acts as a command key 99.
^\ TOGGLE TRANSLATION numerics to linedraw characters
^- REPAINT SCREEN ( this once was ^X ) use the minus key on the top row of the keyboard along with the control key