Next: , Previous: CLOS streams, Up: CLOS streams


3.4.1 CLOS Stream Input

Character input from an clos-stream is implemented by the following methods.

— Method: stream-read-char (object clos-stream)

Returns the next character object read from the CLOS stream object.

— Method: stream-unread-char (object clos-stream) character

Unreads the character object character from the CLOS stream object. character will be the next character read by stream-read-char.

— Method: stream-listen (object clos-stream)

Returns () is no character is immediately available from the CLOS stream object. Otherwise, the next character is returned, as if stream-peek-char had been called.

— Method: stream-clear-input object

Clears any buffered characters on the CLOS stream object. Returns ().