Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

78.6. libedit-20260512

NetBSD line editor with history, key bindings and tab completion

20260512-1 · BSD-3-Clause · 0.2 SBU · 337.6 KiB, 50 files · 41_system, 192 of 1047 · ports/core/base-libs/libedit

Homepage: https://www.thrysoee.dk/editline/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/base-libs.txt:

The line editor lldb links for its prompt. Without it IOHandlerEditline never builds an Editline and (lldb) loses history, arrow-key editing and tab completion — and lldb offers no readline fallback.

libedit, also called editline, is the NetBSD line editor packaged for other systems: a library that gives an interactive prompt history, Emacs and vi key bindings and tab completion, with a compatibility layer for the readline API. In KDOS it is what lldb links for its prompt — without it (lldb) has no history, arrow-key editing or completion, and lldb has no readline fallback — and openssh’s sftp, chrony, xfsprogs, ledger and others link it too.

Depends on: ncurses.

Required by (10): bladerf, chrony, ledger, libgpiod, linuxcnc, lldb, mgba, mosquitto, openssh, xfsprogs.

Sources: libedit-20260512.tar.gz (537.6 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libedit'

build.sh:

./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--disable-static \
	--disable-examples
make
make DESTDIR=$PKG install

Libraries: libedit.so.

Directories: /usr/include/editline, /usr/share/licenses/libedit.