• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

4.19 Primitive character I/O
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Built-in Predicates
        • Primitive character I/O
          • nl/0
          • nl/1
          • put/1
          • put/2
          • put_byte/1
          • put_byte/2
          • put_char/1
          • put_char/2
          • put_code/1
          • put_code/2
          • tab/1
          • tab/2
          • flush_output/0
          • flush_output/1
          • ttyflush/0
          • get_byte/1
          • get_byte/2
          • get_code/1
          • get_code/2
          • get_char/1
          • get_char/2
          • get0/1
          • get0/2
          • get/1
          • get/2
          • peek_byte/1
          • peek_byte/2
          • peek_code/1
          • peek_code/2
          • peek_char/1
          • peek_char/2
          • peek_string/3
          • skip/1
          • skip/2
          • get_single_char/1
          • with_tty_raw/1
          • at_end_of_stream/0
          • at_end_of_stream/1
          • set_end_of_stream/1
          • copy_stream_data/3
          • copy_stream_data/2
          • fill_buffer/1
          • read_pending_codes/3
          • read_pending_chars/3
    • Packages
Availability:built-in
[ISO]peek_byte(-Byte)
[ISO]peek_byte(+Stream, -Byte)
[ISO]peek_code(-Code)
[ISO]peek_code(+Stream, -Code)
[ISO]peek_char(-Char)
[ISO]peek_char(+Stream, -Char)
Read the next byte/code/char from the input without removing it. These predicates do not modify the stream's position or end-of-file status. These predicates require a buffered stream (see set_stream/2) and raise a permission error if the stream is unbuffered or the buffer is too small to hold the longest multi-byte sequence that might need to be buffered.
ClioPatria (version V3.1.1-51-ga0b30a5)