http://tiswww.case.edu/php/chet/readline/rltop.html

基本的には,”readline(“prompt”)” として呼び出すだけで CUI なプログラムで,emacs/vi のキーバインディングの実現や,履歴管理までしてくれる便利なライブラリ.