lispdoc - results for read-char |
(read-char &optional (stream *standard-input*) (eof-error-p t) eof-value recursive-p) | Undocumented
|
Example:(defun continue-p () "Ask user if we should continue looking for solutions." (case (read-char) (#\; t) (#\. nil) (#\Newline (continue-p)) (otherwise (format t " Type ; to see more or . to stop") (continue-p)))) | Mentioned in: CLtL2 - 21.1. Standard Streams CLtL2 - 21.2. Creating New Streams CLtL2 - 21.3. Operations on Streams CLtL2 - 22.1.5. The Readtable CLtL2 - 22.2.1. Input from Character Streams CLtL2 - 23.2. Opening and Closing Files CLtL2 - 23.3. Renaming, Deleting, and Other File Operations CLtL2 - 29.1. Introduction CLtL2 - A.2.1. Scanners HyperSpec - Function READ-CHAR PCL - bulk reads PCL - other kinds of io PCL - reading file data Successful Lisp - chapter19 Successful Lisp - characters |
(unread-char character &optional (stream *standard-input*)) | Undocumented
|
| Mentioned in: CLtL2 - 21.2. Creating New Streams CLtL2 - 22.1.1. What the Read Function Accepts CLtL2 - 22.2.1. Input from Character Streams HyperSpec - Function UNREAD-CHAR PCL - extracting information from an id3 tag Successful Lisp - chapter19 | |
(chunga:read-char* stream &optional eof-error-p eof-value) | Function: The streams we're dealing with are all binary with element type (UNSIGNED-BYTE 8) and we're only interested in ISO-8859-1, so we use this to `simulate' READ-CHAR.
|
(trivial-gray-streams:stream-read-char stream) | Function: Read one character from the stream. Return either a character object, or the symbol :EOF if the stream is at end-of-file. Every subclass of FUNDAMENTAL-CHARACTER-INPUT-STREAM must define a method for this function.
|
(trivial-gray-streams:stream-unread-char stream character) | Function: Un-do the last call to STREAM-READ-CHAR, as in UNREAD-CHAR. Return NIL. Every subclass of FUNDAMENTAL-CHARACTER-INPUT-STREAM must define a method for this function.
|
(read-char-no-hang &optional (stream *standard-input*) (eof-error-p t) eof-value recursive-p) | Undocumented
|
| Mentioned in: CLtL2 - 22.2.1. Input from Character Streams HyperSpec - Function READ-CHAR-NO-HANG Successful Lisp - chapter19 | |
(trivial-gray-streams:stream-read-char-no-hang stream) | Function: This is used to implement READ-CHAR-NO-HANG. It returns either a character, or NIL if no input is currently available, or :EOF if end-of-file is reached. The default method provided by FUNDAMENTAL-CHARACTER-INPUT-STREAM simply calls STREAM-READ-CHAR; this is sufficient for file streams, but interactive streams should define their own method.
|
(read-byte stream &optional (eof-error-p t) eof-value) | Undocumented
|
Example:(defun read-type-code (stream) (read-byte stream)) | Mentioned in: CLtL2 - 22.2.2. Input from Binary Streams CLtL2 - 23.2. Opening and Closing Files CLtL2 - 23.3. Renaming, Deleting, and Other File Operations HyperSpec - Function READ-BYTE PCL - binary format basics PCL - bulk reads PCL - implementing shoutcast PCL - other kinds of io PCL - reading binary data Successful Lisp - chapter19 |
(read-line &optional (stream *standard-input*) (eof-error-p t) eof-value recursive-p) | Undocumented
|
Example:(defun prompt-read (prompt) (format *query-io* "~a: " prompt) (force-output *query-io*) (read-line *query-io*)) | Mentioned in: CLtL2 - 22.2.1. Input from Character Streams CLtL2 - 22.3.1. Output to Character Streams CLtL2 - A.2.1. Scanners HyperSpec - Function READ-LINE On Lisp - Operations on Lists PCL - improving the user interaction PCL - other kinds of io PCL - reading file data Successful Lisp - chapter19 |
read-time | |
| Mentioned in: HyperSpec - 1.5.2.1.1 Use of Read-Time Conditionals | |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |