lispdoc - results for read-line |
(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 |
(chunga:read-line* stream &optional log-stream) | Function: Reads and assembles characters from the binary stream STREAM until a carriage return is read. Makes sure that the following character is a linefeed. If *ACCEPT-BOGUS-EOLS* is not NIL, then the function will also accept a lone carriage return or linefeed as an acceptable line break. Returns the string of characters read excluding the line break. Returns NIL if input ends before one character was read. Additionally logs this string to LOG-STREAM if it is not NIL.
|
(trivial-gray-streams:stream-read-line stream) | Function: This is used by READ-LINE. A string is returned as the first value. The second value is true if the string was terminated by end-of-file instead of the end of a line. The default method uses repeated calls to STREAM-READ-CHAR.
|
read-time | |
| Mentioned in: HyperSpec - 1.5.2.1.1 Use of Read-Time Conditionals | |
(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 |
(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 |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |