Availability:built-in
- <Format>-<Args>
- Where Format is an atom and Args is a list of format arguments. Handed to format/3.
- flush
- If this appears as the last element, Stream is flushed (see flush_output/1)
and no final newline is generated. This is combined with a subsequent
message that starts with
at_same_line
to complete the line. - at_same_line
- If this appears as first element, no prefix is printed for the first
line and the line position is not forced to 0 (see format/1,
~N
). - ansi(+Attributes, +Format, +Args)
- This message may be intercepted by means of the hook
prolog:message_line_element/2. The library
library(ansi_term)
implements this hook to achieve coloured output. If it is not intercepted it invokesformat(Stream, Format, Args)
. - nl
- A new line is started. If the message is not complete, Prefix is printed before the remainder of the message.
- begin(Kind, Var)
- end(Var)
- The entire message is headed by
begin(Kind, Var)
and ended byend(Var)
. This feature is used by, e.g., librarylibrary(ansi_term)
to colour entire messages. - <Format>
- Handed to format/3
as
format(Stream, Format,[])
. Deprecated because it is ambiguous if Format collides with one of the atomic commands.
See also print_message/2 and message_hook/3.