1
0
Fork 0
cl-sites/novaspec.org/cl/v_terminal-io.html

290 lines
6.3 KiB
HTML
Raw Normal View History

2025-02-05 18:52:26 +01:00
<!DOCTYPE HTML>
<HTML LANG="en-us"
><HEAD
><TITLE
>*terminal-io* | Common Lisp Nova Spec</TITLE
><META CHARSET="US-ASCII"
><LINK REL="canonical" HREF="v_terminal-io.html"
><LINK REL="next" HREF="t_stream-error.html" TYPE="text/html" TITLE="stream-error"
><LINK REL="prev" HREF="v_debug-io.html" TYPE="text/html" TITLE="*debug-io*, *error-output*, *query-io*, *standard-input*, *standard-output*, *trace-output*"
><LINK REL="up" HREF="21_2_Streams_Dictionary.html" TYPE="text/html" TITLE="21.2 Streams Dictionary"
><LINK REL="start" HREF="index.html" TYPE="text/html" TITLE="Common Lisp Nova Spec"
><META NAME="VIEWPORT" CONTENT="width=device-width, initial-scale=1.0"
><LINK REL="STYLESHEET" HREF="dpans.css%3F3909942064.css"
><SCRIPT SRC="dpans.js%3F3909942064"
></SCRIPT
><SCRIPT SRC="apropos.js%3F3909942064"
></SCRIPT
></HEAD
><BODY
><DIV
><DIV CLASS="topnav"
><DIV CLASS="breadcrumb"
><SPAN CLASS="breadcrumb-item"
><A HREF="index.html"
>Common Lisp Nova Spec</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="21_Streams.html"
>21. Streams</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="21_2_Streams_Dictionary.html"
>21.2 Streams Dictionary</A
></SPAN
> <SPAN CLASS="breadcrumb-item"
>&#8594; <A HREF="v_terminal-io.html"
>*terminal-io*</A
></SPAN
></DIV
><DIV CLASS="apropos"
><DIV CLASS="apropos-io"
><A HREF="v_debug-io.html" CLASS="prev"
>&#8592;</A
><SPAN ID="apropos-label"
>Apropos </SPAN
><INPUT ID="apropos" AUTOFOCUS="AUTOFOCUS" PLACEHOLDER="Type here to search" ONINPUT="aproposInput(this);" ONKEYUP="aproposKeyup(event);" ONCHANGE="aproposChange(this);" ONFOCUS="aproposFocus(this);" ONFOCUSOUT="aproposFocusout(this);"
><A HREF="t_stream-error.html" CLASS="next"
>&#8594;</A
></DIV
><DIV ID="apropos-res"
></DIV
></DIV
></DIV
><DIV CLASS="matter"
><DIV CLASS="com"
><DIV CLASS="begincom"
><HR
><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0"
><TR
><TD ALIGN="LEFT" VALIGN="BASELINE" WIDTH="100%" CLASS="name"
><SPAN CLASS="idx" DATA-KIND="idxref" DATA-TERM="*terminal-io*"
></SPAN
><SPAN CLASS="cmsy"
>*</SPAN
><B
>terminal-io</B
><SPAN CLASS="cmsy"
>*</SPAN
></TD
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
><I
>Variable</I
></TD
></TR
></TABLE
><HR
></DIV
><UL CLASS="subtoc"
></UL
><DL
><DT
><B
>Value Type</B
></DT
><DD
><P CLASS="j"
>a <A HREF="26_1_Glossary.html#bidirectional"
><EM CLASS="term"
>bidirectional</EM
></A
> <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
>.</P
></DD
><DT
><B
>Initial Value</B
></DT
><DD
><P CLASS="j"
><A HREF="26_1_Glossary.html#implementation-dependent"
><EM CLASS="term"
>implementation-dependent</EM
></A
>, but it must be an <A HREF="26_1_Glossary.html#open"
><EM CLASS="term"
>open</EM
></A
> <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
> that is not a <A HREF="26_1_Glossary.html#generalized_synonym_stream"
><EM CLASS="term"
>generalized synonym stream</EM
></A
> to an <A HREF="26_1_Glossary.html#I_dashO_customization_variable"
><EM CLASS="term"
>I/O customization variables</EM
></A
> but that might be a <A HREF="26_1_Glossary.html#generalized_synonym_stream"
><EM CLASS="term"
>generalized synonym stream</EM
></A
> to the <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of some <A HREF="26_1_Glossary.html#I_dashO_customization_variable"
><EM CLASS="term"
>I/O customization variable</EM
></A
>.</P
></DD
><DT
><B
>Description</B
></DT
><DD
><P CLASS="j"
>The <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of <A HREF="v_terminal-io.html" CLASS="misc"
><B
>*terminal-io*</B
></A
>, called <A HREF="26_1_Glossary.html#terminal_I_dashO"
><EM CLASS="term"
>terminal I/O</EM
></A
>, is ordinarily a <A HREF="26_1_Glossary.html#bidirectional"
><EM CLASS="term"
>bidirectional</EM
></A
> <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
> that connects to the user&#8217;s console. Typically, writing to this <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
> would cause the output to appear on a display screen, for example, and reading from the <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
> would accept input from a keyboard. It is intended that standard input functions such as <A HREF="f_read.html" CLASS="funref"
><B
>read</B
></A
> and <A HREF="f_read-char.html" CLASS="funref"
><B
>read-char</B
></A
>, when used with this <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
>, cause echoing of the input into the output side of the <A HREF="26_1_Glossary.html#stream"
><EM CLASS="term"
>stream</EM
></A
>. The means by which this is accomplished are <A HREF="26_1_Glossary.html#implementation-dependent"
><EM CLASS="term"
>implementation-dependent</EM
></A
>. </P
><P CLASS="j"
>The effect of changing the <A HREF="26_1_Glossary.html#value"
><EM CLASS="term"
>value</EM
></A
> of <A HREF="v_terminal-io.html" CLASS="misc"
><B
>*terminal-io*</B
></A
>, either by <A HREF="26_1_Glossary.html#binding"
><EM CLASS="term"
>binding</EM
></A
> or <EM CLASS="term"
>assignment</EM
>, is <A HREF="26_1_Glossary.html#implementation-defined"
><EM CLASS="term"
>implementation-defined</EM
></A
>.</P
></DD
><DT
><B
>Examples</B
></DT
><DD
><PRE CLASS="screen"
> (progn (prin1 'foo) (prin1 'bar *terminal-io*))
<SPAN CLASS="cmr"
>&#8883;</SPAN
> FOOBAR
<SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> BAR
(with-output-to-string (*standard-output*)
(prin1 'foo)
(prin1 'bar *terminal-io*))
<SPAN CLASS="cmr"
>&#8883;</SPAN
> BAR
<SPAN CLASS="cmsy"
><SPAN CLASS="arrow"
>&#8594;</SPAN
></SPAN
> "FOO"</PRE
></DD
><DT
><B
>See Also</B
></DT
><DD
><P CLASS="j"
><A HREF="v_debug-io.html" CLASS="varref"
><B
>*debug-io*</B
></A
>, <A HREF="v_debug-io.html" CLASS="varref"
><B
>*error-output*</B
></A
>, <A HREF="v_debug-io.html" CLASS="varref"
><B
>*query-io*</B
></A
>, <A HREF="v_debug-io.html" CLASS="varref"
><B
>*standard-input*</B
></A
>, <A HREF="v_debug-io.html" CLASS="varref"
><B
>*standard-output*</B
></A
>, <A HREF="v_debug-io.html" CLASS="varref"
><B
>*trace-output*</B
></A
></P
></DD
></DL
></DIV
></DIV
><DIV CLASS="footer"
><DIV CLASS="btmnav"
><A HREF="v_debug-io.html" CLASS="prev"
>&#8592;</A
><A HREF="t_stream-error.html" CLASS="next"
>&#8594;</A
></DIV
><DIV CLASS="trail"
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
></DIV
></DIV
><SCRIPT
>domReady();</SCRIPT
></BODY
></HTML
>