Mmucl Procedure

Name

kb_bind - Bind a key to a tcl script or display bindings

Synopsis

kb_bind event script
kb_bind pattern

Description

Kb_bind binds key events to tcl scripts. (Read the documentation on the bind command in your tcl distribution for event syntax.) If given one argument, a glob pattern, kb_bind prints out all bindings whose event matches that pattern.

Example

kb_bind <Key-F1> {writemud "cast spell"}

Cast a spell when F1 is pressed.

kb_bind <KeyPress> {echo %K}

Print out key events as they occur.

kb_bind <Key-Escape> {mudputs quit; exit}

Write "quit" to the mud and exit mmucl when escape is pressed.

See Also

unkb_bind


Home