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_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
Availability::- use_module(library(editline)).(can be autoloaded)
Source[det]el_history(+In:stream, ?Action)
Perform a generic action on the history. This provides an incomplete interface to history() from libedit. Supported actions are:
clear
Clear the history.
setsize(+Integer)
Set size of history to size elements.
getsize(-Integer)
Unify Integer with the maximum size of the history. Note that this is not the same as el_history() using H_GETSIZE, which returns the number of currently saved events. The number of saved events may be computed from first and last or using el_history_events/2.
setunique(+Boolean)
Set flag that adjacent identical event strings should not be entered into the history.
first(-Num, -String)
last(-Num, -String)
curr(-Num, -String)
prev(-Num, -String)
next(-Num, -String)
Retrieve an event. Num is the event number and String is the event string. Note that first is the most recent event and last the oldest.
set(Num)
Set the notion of current to Num.
prev_str(+Search, -Num, -String)
next_str(+Search, -Num, -String)
Retrieve the previous or next event whose String starts with Search.
event(+Num, -String)
True when String represents event Num. This is an extension to the history() API, retrieving a numbered event without changing the current notion.