MTS 8: LISP and SLIP in MTS
Page Revised January 1983 June 1976
THIS
(STATUS (10 ABUF T)) Makes the current contents of ABUF a
prefix.
0
(TERPRI ABUF) This has no effect since the prefix
is not treated as buffer content.
NIL
(PRINT ’PRINT2 ABUF)
THIS IS A TEST PRINT2
PRINT2
(STATUS (10 ABUF NIL)) Disables the prefix.
14
(PRINT ’PRINT3 ABUF)
THIS IS A TEST The first TERPRI prints buffer con-
tents (no longer a prefix).
PRINT3
PRINT3
(PRINT ’PRINT2 ABUF)
PRINT2
PRINT2
Buffer Overflow Interception ____________________________
The user may, on an I/O call, specify a read or print intercept
function as an optional argument. The intercept must be a function
which takes one argument. If an intercept function is specified in a
call to READ, READLINE, or READCH, on any attempt to do a physical read
into the buffer, the intercept function will be called first. The IOARG
for that READ will be passed to the intercept function as its argument.
If an intercept function is specified in a PRINT, PRIN1, or TERPRI
call, on any attempt to do a physical write from the buffer, the
intercept function will be called first. The IOARG for that PRINT
operation is passed as the argument to the intercept function.
Upon return from an intercept function, the LISP system will complete
the I/O operation.
End-of-File Processing ______________________
Each LISP file has an EOF function, which will be called if an
end-of-file is encountered while reading from that file. An EOF
function may be attached to a file by calling the STATUS function.
50 LISP