0

I would like to use readline in a C program, with history-search-backward and history-search-forward triggered by the up and down arrows. I tried things like

rl_parse_and_bind("\"\e[A\":history-search-backward");
rl_parse_and_bind("\"\e[B\":history-search-forward");

in my program, but to no avail.

1 Answer 1

0

I figured it out. I was using libedit-dev. libreadline6-dev worked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .