1 2 3
This is the GNU readline library, which can be linked into applications, allowing them to re-use previously typed input and additionally to edit it.