- Equivalent to
writef(Atom, ).See writef/2 for details.
- [deprecated]writef(+Format, +Arguments)
- Formatted write. Format is an atom whose characters will be
Format may contain certain special character sequences which
specify certain formatting and substitution actions. Arguments
provides all the terms required to be output.
Escape sequences to generate a single special character:
Output a newline character (see also nl/[0,1])
Output a line separator (same as
Output a carriage return character (ASCII 13)
Output the ASCII character TAB (9)
where <nnn> is an integer (1-3 digits); the character with code <nnn> is output (NB : <nnn> is read as decimal)
\\are interpreted differently when character escapes are in effect. See section 22.214.171.124.
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.
print/1 the next item (mnemonic: term)
write/1 the next item
writeq/1 the next item
Write the term, ignoring operators. See also write_term/2. Mnemonic: old Edinburgh display/1
print/1 the next item (identical to
Put the next item as a character (i.e., it is a character code)
Write the next item N times where N is the second item (an integer)
Write the next item as a String (so it must be a list of characters)
Perform a ttyflush/0 (no items used)
Write the next item Centered in N columns
Write the next item Left justified in N columns
Write the next item Right justified in N columns. N is a decimal number with at least one digit. The item must be an atom, integer, float or string.
- [deprecated]swritef(-String, +Format, +Arguments)
- Equivalent to writef/2,
but ``writes'' the result on String instead of the current
output stream. Example:
?- swritef(S, '%15L%w', ['Hello', 'World']). S = "Hello World"
- [deprecated]swritef(-String, +Format)
- Equivalent to
swritef(String, Format, ).