需求

如果要使用 readline 函数,你必须安装 libreadline. 你能在 GNU readline 项目主页找到 libreadline. 地址» http://cnswww.cns.cwru.edu/~chet/readline/rltop.html . 它被 Chet Ramey 维护, 他也是 Bash 的作者

你也能使用非 GPL 的 libedit 库来替代 readline 库, libedit 库是使用 BSD 证书,你可以从» http://www.thrysoee.dk/editline/下载.

add a note add a note

User Contributed Notes 1 note

up
-3
Anonymous
13 years ago
Note that libedit does not support the function readline_list_history()
To Top