This is the library released in 4.4BSD that was created to abstract the process of reading interactively-edited user input and keeping a history. It's used, for example, in /bin/sh.

Compare GNU readline.