QP_add_tty()

Synopsis

     #include <quintus/quintus.h>
     
     int QP_add_tty(stream, tty_id)
     QP_stream *stream;
     char      *tty_id;
     

Register a created Prolog stream to a tty stream group.

Arguments


stream
a pointer to a valid stream structure
tty_id
an identification string for a tty group

Description

This function is used to register a stream to a tty group. All the streams in a tty group share a single stream position (see the reference pages for line_count/2, line_position/2 and character_count/2). When input is requested on one of the streams and the shared line position is 0, a prompt is output on one of the output streams.

See Also

fli-ios-tty