• 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

1 library(editline): BSD libedit based command line editing
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog binding to BSD libedit
        • library(editline): BSD libedit based command line editing
          • el_wrap/0
          • el_wrap/1
          • el_wrap/4
          • el_wrap/5
          • el_setup/1
          • el_wrapped/1
          • el_unwrap/1
          • el_source/2
          • el_bind/2
          • el_addfn/4
          • el_set/2
          • el_get/2
          • el_line/2
          • el_cursor/2
          • el_insertstr/2
          • el_deletestr/2
          • el_history/2
          • el_history_events/2
          • el_add_history/2
          • el_read_history/2
          • el_write_history/2
          • el_version/1
          • history/2
          • line_editor_attributes/2
Source[det,multifile]prolog:line_editor_attributes(+Off, +On)
Tell libedit how to switch the decoration of the line being edited off and on again. The toplevel leaves the attributes of the colour class input in effect while the user is typing (see decorate_prompt/2 in boot/toplevel.pl). Erasing part of the screen paints it with the current background colour, so libedit must switch these attributes off before it erases the rows the line no longer uses, e.g. after unwrapping a long line or moving from a multi-line history entry to a shorter one. See EL_ATTRS in libedit.

The toplevel calls this each time it builds a prompt, so a theme loaded at run time is picked up. Does nothing if libedit is too old to support this.

ClioPatria (version V3.1.1-59-g7b9a7a3)