(make-object mred:console-edit% line-spacing tabstops numtabs) -> mred:console-edit% object
line-spacing = 1.0 : inexact real
tabstops = null : boxed inexact real or null
numtabs = 0 : small integer
The input, output, and error ports are created,
super-init is called and then the buffer's mode is set to Scheme
interaction mode.
This class defines a buffer for interactive Scheme. A Scheme expression
is read and evaluated from the buffer when the user hits RETURN
and:
- no values or have been displayed to the buffer since the last prompt
was written, and
- only spaces follow the caret, and
- the text between the caret and the prompt position is a balanced
S-expression (or sequence of expressions).
If the user hits RETURN when a range of text is selected, the selected
text replaces all text from the prompt position to the end of the buffer,
and the caret is moved to the end of the buffer. When RETURN is hit
at the end of a balanced S-expression, it is copied similarly.
Each mred:console-edit% object defines an input port. Text is
placed into this port for reading instead of being evaluated whenever
read-char blocks on the port, waiting for input.