| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 |
<html> |
| 3 |
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ --> |
| 4 |
<head> |
| 5 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 6 |
<title>Interactive Streams (ANSI and GNU Common Lisp Document)</title> |
| 7 |
|
| 8 |
<meta name="description" content="Interactive Streams (ANSI and GNU Common Lisp Document)"> |
| 9 |
<meta name="keywords" content="Interactive Streams (ANSI and GNU Common Lisp Document)"> |
| 10 |
<meta name="resource-type" content="document"> |
| 11 |
<meta name="distribution" content="global"> |
| 12 |
<meta name="Generator" content="makeinfo"> |
| 13 |
<link href="index.html" rel="start" title="Top"> |
| 14 |
<link href="Introduction-to-Streams.html" rel="up" title="Introduction to Streams"> |
| 15 |
<link href="Abstract-Classifications-of-Streams.html" rel="next" title="Abstract Classifications of Streams"> |
| 16 |
<link href="Open-and-Closed-Streams.html" rel="prev" title="Open and Closed Streams"> |
| 17 |
<style type="text/css"> |
| 18 |
<!-- |
| 19 |
a.summary-letter {text-decoration: none} |
| 20 |
blockquote.indentedblock {margin-right: 0em} |
| 21 |
div.display {margin-left: 3.2em} |
| 22 |
div.example {margin-left: 3.2em} |
| 23 |
div.lisp {margin-left: 3.2em} |
| 24 |
kbd {font-style: oblique} |
| 25 |
pre.display {font-family: inherit} |
| 26 |
pre.format {font-family: inherit} |
| 27 |
pre.menu-comment {font-family: serif} |
| 28 |
pre.menu-preformatted {font-family: serif} |
| 29 |
span.nolinebreak {white-space: nowrap} |
| 30 |
span.roman {font-family: initial; font-weight: normal} |
| 31 |
span.sansserif {font-family: sans-serif; font-weight: normal} |
| 32 |
ul.no-bullet {list-style: none} |
| 33 |
--> |
| 34 |
</style> |
| 35 |
|
| 36 |
|
| 37 |
</head> |
| 38 |
|
| 39 |
<body lang="en"> |
| 40 |
<span id="Interactive-Streams"></span><div class="header"> |
| 41 |
<p> |
| 42 |
Next: <a href="Abstract-Classifications-of-Streams.html" accesskey="n" rel="next">Abstract Classifications of Streams</a>, Previous: <a href="Open-and-Closed-Streams.html" accesskey="p" rel="prev">Open and Closed Streams</a>, Up: <a href="Introduction-to-Streams.html" accesskey="u" rel="up">Introduction to Streams</a> </p> |
| 43 |
</div> |
| 44 |
<hr> |
| 45 |
<span id="Interactive-Streams-1"></span><h4 class="subsubsection">21.1.1.4 Interactive Streams</h4> |
| 46 |
|
| 47 |
<p>An <i>interactive stream</i> |
| 48 |
<span id="index-interactive-stream"></span> |
| 49 |
is one on which it makes sense to perform |
| 50 |
interactive querying. |
| 51 |
</p> |
| 52 |
<p>The precise meaning of an <i>interactive stream</i> is |
| 53 |
<i>implementation-defined</i>, and may depend on the underlying |
| 54 |
operating system. Some examples of the things that an |
| 55 |
<i>implementation</i> might choose to use as identifying characteristics |
| 56 |
of an <i>interactive stream</i> include: |
| 57 |
</p> |
| 58 |
<dl compact="compact"> |
| 59 |
<dt><tt>*</tt></dt> |
| 60 |
<dd><p>The <i>stream</i> is connected to a person (or equivalent) in such a way |
| 61 |
that the program can prompt for information and expect to receive different |
| 62 |
input depending on the prompt. |
| 63 |
</p> |
| 64 |
</dd> |
| 65 |
<dt><tt>*</tt></dt> |
| 66 |
<dd><p>The program is expected to prompt for input and support “normal input editing”. |
| 67 |
</p> |
| 68 |
</dd> |
| 69 |
<dt><tt>*</tt></dt> |
| 70 |
<dd><p><b>read-char</b> might wait for the user to type something before returning |
| 71 |
instead of immediately returning a character or end-of-file. |
| 72 |
</p> |
| 73 |
</dd> |
| 74 |
</dl> |
| 75 |
|
| 76 |
<p>The general intent of having some <i>streams</i> be classified as |
| 77 |
<i>interactive streams</i> is to allow them to be distinguished from |
| 78 |
streams containing batch (or background or command-file) input. |
| 79 |
Output to batch streams is typically discarded or saved for later viewing, |
| 80 |
so interactive queries to such streams might not have the expected effect. |
| 81 |
</p> |
| 82 |
<p><i>Terminal I/O</i> might or might not be an <i>interactive stream</i>. |
| 83 |
</p> |
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
</body> |
| 88 |
</html> |