Node:Default Ports, Next:, Previous:Block Reading and Writing, Up:Input and Output



27.8 Default Ports for Input, Output and Errors

current-input-port Scheme Procedure
scm_current_input_port () C Function
Return the current input port. This is the default port used by many input procedures. Initially, current-input-port returns the standard input in Unix and C terminology.

current-output-port Scheme Procedure
scm_current_output_port () C Function
Return the current output port. This is the default port used by many output procedures. Initially, current-output-port returns the standard output in Unix and C terminology.

current-error-port Scheme Procedure
scm_current_error_port () C Function
Return the port to which errors and warnings should be sent (the standard error in Unix and C terminology).

set-current-input-port port Scheme Procedure
set-current-output-port port Scheme Procedure
set-current-error-port port Scheme Procedure
scm_set_current_input_port (port) C Function
scm_set_current_output_port (port) C Function
scm_set_current_error_port (port) C Function
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.

set-current-output-port port Scheme Procedure
Set the current default output port to PORT.

set-current-error-port port Scheme Procedure
Set the current default error port to PORT.