22.1 Basic Input Streams

CLIM provides an implementation of the basic input stream facilities (described in more detail in Appendix D), either by directly using the underlying Lisp implementation, or by implementing the facilities itself. [annotate]

standard-input-stream   [Class]
          

This class provides an implementation of the CLIM's basic input stream protocol based on CLIM's input kernel. It defines a handle-event method for keystroke events and queues the resulting characters in a per-stream input buffer. Members of this class are mutable. [annotate]

[annotate]

stream-read-char  stream [Generic Function]
stream-read-char-no-hang  stream [Generic Function]
          

Like stream-read-char, except that if no character is available the function returns false. [annotate]

[annotate]

stream-unread-char  stream character [Generic Function]
          

Places the character character back into the input stream stream's input buffer. The next call to read-char on stream will return the unread character. The character supplied must be the most recent character read from the stream. [annotate]

[annotate]

stream-peek-char  stream [Generic Function]
          

Returns the next character available in the input stream stream. The character is not removed from the input buffer. Thus, the same character will be returned by a subsequent call to stream-read-char. [annotate]

[annotate]

stream-listen  stream [Generic Function]
          

Returns true if there is input available on the input stream stream, false if not. [annotate]

[annotate]

stream-read-line  stream [Generic Function]
          

Reads and returns a string containing a line of text from the input stream stream, delimited by the #\Newline character. [annotate]

[annotate]

stream-clear-input  stream [Generic Function]
          

Clears any buffered input associated with the input stream stream, and returns false. [annotate]

[annotate]