line_position/2

Synopsis

line_position(+Stream, -N)

Unifies N with the total number of characters either read or written on the current line of Stream.

Arguments


Stream stream_object
specifies an open stream
N integer
current line position

Description

A fresh line has a line position of 0. See ref-iou-sos-spt, for details on the use of this predicate on a stream that is directed to the user's terminal.

Exception

Stream errors (see ref-iou-sfh-est)

See Also

character_count/2, line_count/2, stream_position/3 ref-iou