4.18 Status of streams
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Status of streams
          • wait_for_input/3
          • byte_count/2
          • character_count/2
          • line_count/2
          • line_position/2
    • Packages
Availability:built-in
line_position(+Stream, -Count)
Unify Count with the position on the current line. Note that this assumes the position is 0 after the open. Tabs are assumed to be defined on each 8-th character, and backspaces are assumed to reduce the count by one, provided it is positive.