- 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
- library(editline): BSD libedit based command line editing
- SWI-Prolog binding to BSD libedit
[det,multifile]prolog:line_editor_attributes(+Off,
+On)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.