URL: http://www.firstbasesoftware.com/man/man5/keyboard.htm
Last modified: 12 September 1995
Copyright © by FirstBase Software.
[
Index of Contents] [
FirstBase RDBMS Overview]
When a FirstBase tool is used with Editable Input, the keyboard map is loaded from a .firstbase-kbmap file located in either the $HOME directory, somewhere along $PATH, or in the FirstBase home directory, in this order. The first file located is loaded.
setkey "sequence" action
The setkey must be in the first character column -- these are the only lines that will be processed. Blanks and tabs are used to separate the sequence and action parts of each setkey line. Comments beyond the action are started using a pound sign (#).
The first character of each sequence must be some kind of control character. Subsequent characters can be of any type. Function keys and arrow keys are in this category.
Control characters are denoted using one of the following:
\^ .... Control \e .... Escape \^? .... Del \ .... \
For example, the sequence \^f represents <CONTROL>-F, and \ek represents <ESCAPE>-k. In these examples, the <CONTROL> character is depressed while typing the f character, but the <ESCAPE> is a single keystroke by itself, followed by the single keystroke k.
A sequence can be as long as needed. Furthermore, multiple sequences can be bound to the same action.
# intraline editing commands setkey "\^a" beginning-of-line setkey "\^e" end-of-line setkey "\^d" delete-char-forward setkey "\^?" delete-char-backward setkey "\^u" delete-to-beginning-of-line setkey "\^k" delete-to-end-of-line setkey "\^f" move-char-forward setkey "\^b" move-char-backward setkey "\ed" delete-word-forward setkey "\e\^?" delete-word-backward setkey "\^w" delete-word-backward # overload function setkey "\ef" move-word-forward setkey "\eb" move-word-backward setkey "\^g" quit setkey "\eu" upcase-word setkey "\ec" capitalize-word setkey "\el" downcase-word # standard FirstBase signals setkey "\e-" end setkey "\^h" help setkey "\^c" abort # general abort keystroke setkey "\^n" next # next field, dbedit setkey "\^p" prev # prev field, dbedit setkey "\^l" redraw setkey "\^v" pagedown # dbedit data/choice pages ... setkey "\ev" pageup # dbedit data/choice pages ... setkey "\^x\^b" bsignal # backward record, dbedit setkey "\^x\^f" fsignal # forward record, dbedit setkey "\^x\^s" writerec # dbedit writerec setkey "\^x0" deleterec # dbedit delete record setkey "\eh" help # UNIX system signals setkey "\e\^z" system-stop # UNIX stop. setup(5). setkey "\e\^c" system-interrupt # UNIX interrupt. sometimes allowed # Arrow keys - may need tuning to your particular keyboard setkey "\e[A" prev # example of an arrow key setkey "\e[B" next # example of an arrow key setkey "\e[C" move-char-forward # example of an arrow key setkey "\e[D" move-char-backward # example of an arrow key
FirstBase User's Guide and Reference Manual