[ Term I/O | Reference Manual | Alphabetic Index ]

# write_term(?Term, ++Options)

The term Term is written to the current output in a format specified by Options

Term
  An arbitrary term
Options
  List of option terms

## Description

This is a generalisation of the predicates write/1, writeq/1, print/1, display/1, write_canonical/1. It is used to write an arbitrary term Term onto the current output stream according to the given options.

`write_term(Term, Options)` is equivalent to `write_term(output, Term, Options)`. For details see write_term/3.

### Modes and Determinism

- write_term(?, ++) is det

### Modules

This predicate is sensitive to its module context (tool predicate, see @/2).

## Examples

            Equivalent to write_term(output, Term, Options).
            See write_term/3 for examples.

## See Also

write_term / 3, display / 1, print / 1, printf / 2, write / 1, writeq / 1, write_canonical / 1