Page 246 Table of Contents Index Page 248
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E



CHAPTER 24. INPUT EDITING AND COMPLETION FACILITIES

Indicates that a rescan operation on the input editing stream stream should take place after the
next non-input editing gesture is read by setting the "rescan queued" flag to true.

=> rescan-if-necessary stream [Generic Function]
Invokes a rescan operation on the input editing stream stream if queue-rescan was called on
the same stream and no intervening rescan operation has taken place. Resets the state of the
"rescan queued" flag to false.

=> erase-input-buffer stream &optional (start-position 0) [Generic Function]
Erases the part of the display that corresponds to the input editor's buffer starting at the position
start-position.

=> redraw-input-buffer stream &optional (start-position 0) [Generic Function]
Displays the input editor's buffer starting at the position start-position on the interactive stream
that is encapsulated by the input editing stream stream.

=> stream-process-gesture stream gesture type [Generic Function]
If gesture is an input editing command, stream-process-gesture performs the input editing
operation on the input editing stream stream and returns nil. Otherwise, it returns the two
values gesture and type.

=> stream-read-gesture (stream standard-input-editing-stream) &key [Method]
Reads and returns a gesture from the user on the input editing stream stream.

The stream-read-gesture method must call stream-process-gesture, which will either re-
turn a "real" gesture (such as a typed character, a pointer gesture, or a timeout) or will return
nil (indicating that some sort of input editing operation was performed). stream-read-gesture
must only return when a real gesture was been read; if an input editing operation was performed,
stream-read-gesture will loop until a "real" gesture is typed by the user.

=> stream-unread-gesture (stream standard-input-editing-stream) gesture [Method]
Inserts the gesture gesture back into the input editor's buffer, maintaining the scan pointer.

24.1.2 Suggestions for Input Editing Commands

An implementation of the input editor should provide a set of generally useful input editing
commands. The exact set of these commands is unspecified, and the key bindings for these
commands may vary from platform to platform. The following is a suggested set of input editing
commands and key bindings, taken roughly from EMACS.


Page 246 Table of Contents Index Page 248
Chapters
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30
A, B, C, D, E