worth noting that you get basic line editing for "free" from kernels tty subsystem even if you don't use readline.