Most of character I/O predicates have several variants:
put_byte
.
put_code
), and those using
one-char atoms (suffix `_char', e.g. put_char
).
put
), with the exception
of peek_char
.
put_byte(Stream, Byte)
), or without the stream
argument, in which case the current input or output stream is used,
depending on the context (e.g. put_byte(Byte)
).
tty
, e.g. ttyput(Code)
.
nl
ISOnl(
+Stream)
ISOget_code(
?Code)
ISOget_code(
+Stream,
?Code)
ISOget_code/2
for
the same stream will normally raise an exception, unless the
stream is connected to the terminal (but see the eof_action
option of open/4
; see Stream Pred).
get_char(
?Char)
ISOget_char(
+Stream,
?Char)
ISOend_of_file
, and further calls to
get_char/2
for the same stream will normally raise an
exception, unless the stream is connected to the terminal (but see
the eof_action
option of open/4
; see Stream Pred).
get_byte(
?Byte)
ISOget_byte(
+Stream,
?Byte)
ISOget_code
.
get0(
?Code)
obsolescentget0(
+Stream,
?Code)
obsolescentget_code
and get_byte
: Code is the
next character code or byte read from the arbitrary stream
Stream.
get(
?N)
obsolescentget(
+Stream,
?N)
obsolescentget0/2
, except N is the character code of the
next character that is not a layout-char (see Token String)
read from Stream.
peek_code(
?Code)
ISOpeek_code(
+Stream,
?Code)
ISOpeek_char(
?Char)
ISO onlypeek_char(
+Stream,
?Char)
ISO onlyend_of_file
, if all characters
of Stream have been read. The character is not actually read.
peek_char(
?Code)
SICStus onlypeek_char(
+Stream,
?Code)
SICStus onlypeek_code
.
peek_byte(
?Byte)
ISOpeek_byte(
+Stream,
?Byte)
ISOskip(
+Code)
obsolescentskip(
+Stream,
+Code)
obsolescentskip_line
skip_line(
+Stream)
read_line(
-Line)
read_line(
+Stream,
-Line)
end_of_file
, and on subsequent calls an
exception is raised.
put_code(
+Code)
ISOput_code(
+Stream,
+Code)
ISOput_char(
+Char)
ISOput_char(
+Stream,
+Char)
ISOput_byte(
+Byte)
ISOput_byte(
+Stream,
+Byte)
ISOput(
+Code)
obsolescentput(
+Stream,
+Code)
obsolescentput_code
and put_byte
: Code is
output onto (an arbitrary stream) Stream. Code may be
an arithmetic expression.
tab(
+N)
obsolescenttab(
+Stream,
+N)
obsolescentThe above predicates are the ones that are the most commonly used, as they can refer to any streams. The predicates listed below always refer to the standard input and output streams. They are provided for compatibility with DEC-10 character I/O, and are actually redundant and easily recoded in terms of the above predicates.
ttynl
obsolescentnl(user_output)
.
ttyflush
obsolescentflush_output(user_output)
.
ttyget0(
?N)
obsolescentget0(user_input,
N)
.
ttyget(
?N)
obsolescentget(user_input,
N)
.
ttyput(
+N)
obsolescentput(user_output,
N)
.
ttyskip(
+N)
obsolescentskip(user_input,
N)
.
ttytab(
+N)
obsolescenttab(user_output,
N)
.