Go to the first, previous, next, last section, table of contents.
These procedures obtain and modify information about ports, but are not
specific to one kind of port.
- primitive: current-error-port
-
Return the port to which errors and warnings should be sent (the
standard error in Unix and C terminology).
- primitive: set-current-input-port port
-
- primitive: set-current-output-port port
-
- primitive: set-current-error-port port
-
Change the ports returned by
current-input-port
,
current-output-port
and current-error-port
, respectively,
so that they use the supplied port for input or output.
- primitive: port-column [input-port]
-
- primitive: port-line [input-port]
-
Return the current column number or line number of input-port,
using the current input port if none is specified. If the number is
unknown, the result is #f. Otherwise, the result is a 0-origin integer
- i.e. the first character of the first line is line 0, column 0.
(However, when you display a file position, for example in an error
message, we recommand you add 1 to get 1-origin integers. This is
because lines and column numbers traditionally start with 1, and that is
what non-programmers will find most natural.)
- primitive: set-port-column! [input-port] column
-
- primitive: set-port-line! [input-port] line
-
Set the current column or line number of input-port, using the
current input port if none is specified.
Go to the first, previous, next, last section, table of contents.