e93 Command Reference

Previous

Command Index

Next


bindkey

bindkey

Built-in

SYNOPSIS

bindkey keyName modifiers keyFunction

DESCRIPTION

Establish a binding between a keyboard key and a Tcl script.

INPUT

None

OUTPUT

None

STATUS

The bindkey command will return an error in the following cases:
Invalid modifiers
Invalid modifiers (incorrect length)
Invalid key code
wrong # args: should be "bindkey keyName modifiers keyFunction"

PARAMETERS

keyName

keyName identifies the key to which e93 is to bind a command.

modifiers

is a string of 11 characters that tell e93 which modifier keys should be in which states for this binding to take effect.
The string can contain X, 0, or 1 in each character position with the following meanings:

X don't care which state the modifier is in
0 modifier must not be pressed
1 modifier must be pressed

The 11 modifier keys are (in order):

Caps_Lock
Shift
Control Alt on Windows
Mod 0 system dependent modifiers
Mod 1
Mod 2
Mod 3
Mod 4
Mod 5
Mod 6
Mod 7

keyFunction

is a Tcl script to run when the key is pressed.

OPTIONS

None

EXAMPLES

binding the combination Alt-F5 to beep:
bindkey F5 00100000000 {beep}

SEE ALSO

unbindkey waitkey key names


Previous

Command Index

Next

Last Changed January 2002