• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.11.4 Printing messages
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Exception handling
          • Printing messages
            • print_message/2
            • print_message_lines/3
            • message_hook/3
            • thread_message_hook/3
            • message_property/2
            • message_line_element/2
            • message_to_string/2
            • version/0
            • version/1
            • Printing from libraries
    • Packages
Availability:built-in
Sourceprint_message_lines(+Stream, +Prefix, +Lines)
Print a message (see print_message/2) that has been translated to a list of message elements. The elements of this list are:
<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 invokes format(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 by end(Var). This feature is used by, e.g., library library(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.

ClioPatria (version V3.1.1-51-ga0b30a5)