summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
Diffstat (limited to 'txr.1')
-rw-r--r--txr.123
1 files changed, 23 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 8f87e428..a6760076 100644
--- a/txr.1
+++ b/txr.1
@@ -10465,6 +10465,29 @@ the two operations will interfere with the UTF-8 decoding.
These functions return nil when the end of data is reached. Errors are
represented as exceptions.
+.SS Functions unget-char and unget-byte
+
+.TP
+Syntax:
+
+ (unget-char <char> [<stream>])
+ (unget-byte <byte> [<stream>])
+
+.TP
+Description:
+
+These character put back, into a stream, a character or byte which was
+previously read. The character or byte must match the one which was most
+recently read. If the <stream> parameter is omitted, then the *stdin*
+stream is used.
+
+If the operation succeeds, the byte or character value is returned.
+A nil return indicates that the operation is unsupported.
+
+Some streams do not support these operations; some support
+only one of them. In general, if a stream supports get-char,
+it supports unget-char, and likewise for get-byte and unget-byte.
+
.SS Functions put-string, put-line, put-char and put-byte
.TP