| flushes any buffered information to an outputstream.
>H3>flush_output flush_output(+Stream)
flush_output flushes any buffered information to the current outputstream,
while flush_output(Stream) flushes any buffered information to the outputstream
Stream.
Arguments
Stream output stream
Examples
loop :-
repeat,
write(user_output, '?- '), flush_output(user_output),
read(user_input, Term),
( Term == end_of_file ; call(Term), fail ),
!.
Standard
These predicates are part of the ISO-Prolog Standard.
See also
at_end_of_stream/0/1,
close/1/2,
current_error/1,
current_input/1,
current_output/1,
open/3/4,
set_error/1,
set_input/1,
set_output/1.
|