QP_add_tty()
#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.
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.