Next: Waiting, Previous: Events, Up: Command Loop [Contents][Index]
The editor command loop reads keyboard input using the function
next-event
and constructs key sequences out of the events using
dispatch-event
.
Lisp programs can also use the function read-key-sequence
, which
reads input a key sequence at a time. See also
momentary-string-display
in Temporary Displays,
and sit-for
in Waiting. See Terminal Input, for
functions and variables for controlling terminal input modes and
debugging terminal input.
For higher-level input facilities, see Minibuffers.
• Key Sequence Input: | How to read one key sequence. | |
• Reading One Event: | How to read just one event. | |
• Dispatching an Event: | What to do with an event once it has been read. | |
• Quoted Character Input: | Asking the user to specify a character. | |
• Peeking and Discarding: | How to reread or throw away input events. |