Did you know ... Search Documentation:
Pack wam_common_lisp -- prolog/wam_cl/compat/utils_writef.pl
PublicShow source

Re-exported predicates

The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.

 writef(+Format) is det
 writef(+Format, +Arguments) is det
Formatted write to the current_output. Format is a format specifier. Some escape sequences require arguments that must be provided in the list Arguments. There are two types of escape sequences: special characters start with \ and include arguments start with %. The special character sequences are:
\nOutput a newline character
\lOutput a line separator (same as \n)
\rOutput a carriage-return character (ASCII 13)
\rOutput a TAB character (ASCII 9)
\\Output \
\%Output %
\nnnOutput character <nnn>. <nnn> is a 1-3 decimal number

Escape sequences to include arguments from Arguments. Each time a %-escape sequence is found in Format the next argument from Arguments is formatted according to the specification.

%tprint/1 the next item (mnemonic: term)
%wwrite/1 the next item
%qwriteq/1 the next item
%ddisplay/1 the next item
%nPut the next item as a character
%rWrite the next item N times where N is the second item (an integer)
%sWrite the next item as a String (so it must be a list of characters)
%fPerform a ttyflush/0 (no items used)
%NcWrite the next item Centered in N columns.
%NlWrite the next item Left justified in N columns.
%NrWrite the next item Right justified in N columns.
deprecated
- New code should use format/1, format/2, etc.
 writef(+Format) is det
 writef(+Format, +Arguments) is det
Formatted write to the current_output. Format is a format specifier. Some escape sequences require arguments that must be provided in the list Arguments. There are two types of escape sequences: special characters start with \ and include arguments start with %. The special character sequences are:
\nOutput a newline character
\lOutput a line separator (same as \n)
\rOutput a carriage-return character (ASCII 13)
\rOutput a TAB character (ASCII 9)
\\Output \
\%Output %
\nnnOutput character <nnn>. <nnn> is a 1-3 decimal number

Escape sequences to include arguments from Arguments. Each time a %-escape sequence is found in Format the next argument from Arguments is formatted according to the specification.

%tprint/1 the next item (mnemonic: term)
%wwrite/1 the next item
%qwriteq/1 the next item
%ddisplay/1 the next item
%nPut the next item as a character
%rWrite the next item N times where N is the second item (an integer)
%sWrite the next item as a String (so it must be a list of characters)
%fPerform a ttyflush/0 (no items used)
%NcWrite the next item Centered in N columns.
%NlWrite the next item Left justified in N columns.
%NrWrite the next item Right justified in N columns.
deprecated
- New code should use format/1, format/2, etc.

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 prconj(Arg1)
 prexpr(Arg1)
 prlist(Arg1)
 ttyprint(Arg1)
 fwritef(Arg1, Arg2)
 fwritef(Arg1, Arg2, Arg3)