write(Term), nl.
writef(Atom, []).
Escape sequences to generate a single special character:
\n | Output a nemline character (see alsonl/[0,1]) |
\l | Output a line separator (same as\n ) |
\r | Output a carriage-return character (ASCII 13) |
\t | Output the ASCII character TAB (9) |
\\ | The character is
output |
\% | The character is
output |
\nnn | where<nnn>is an integer (1-3 digits) the character with ASCII code<nnn>is output (NB :<nnn>is read asdecimal) |
Note that \l
, \\bnfmeta{nnn}
and \\
are interpreted differently when character-escapes are in effect. See
section 2.12.1.1.
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.
%t | print/1the next item (mnemonic: term) |
%w | write/1the next item |
%q | writeq/1the next item |
%d | display/1the next item |
%p | print/1the
next item (identical to%t ) |
%n | Put the next item as a character (i.e. it is an ASCII value) |
%r | Write the next item N times where N is the second item (an integer) |
%s | Write the next item as a String (so it must be a list of characters) |
%f | Perform attyflush/0(no items used) |
%Nc | Write the next item Centered inNcolumns. |
%Nl | Write the next item Left justified inNcolumns. |
%Nr | Write the next item Right justified inNcolumns. Nis a decimal number with at least one digit. The item must be an atom, integer, float or string. |
swritef(String, Format, []).