next up previous
Next: 19.8 Keyboard Alias Up: 19. RC Files Previous: 19.6 Spelling Checker Options

19.7 Keyboard Bindings

Each and every command in Ved can be bound to a set of key strokes. The binding of any command can be changed.

By default, a number of commands (most of these are accessible though menus) are not connected to any key sequences; however, it is possible to change this.

In a RC file a line like (this should be one, long, line):

Bind CURSOR_RIGHT "Move cursor right one position" "Right" KEY_RIGHT

can be used to modify a keybinding and the associated help information. The following fields must all be present in an bind RC command:

Command Name
This is the single word command name associated with the command. In the above example this is ``Cursor_Right''.

Help Text
The text displayed in the help screens. This field must be enclosed in string delimiters.

Key Label
This is usually the name of the key(s) for the command. Examples include ``Esc-Delete'', ``Ctrl-Z'', or even ``Left Arrow''. This field must be enclosed in string delimiters.

Keys ...
A list of keys up to a maximum of 5. Each item in the list should be a Ved value, or symbolic keyname defined by ncurses. A list of the symbolic names understood by Ved is presented in Appendix B.


next up previous
Next: 19.8 Keyboard Alias Up: 19. RC Files Previous: 19.6 Spelling Checker Options
2004-05-02