I've been trying to make an interactive shell-like program using the Readline() functions. It works OK in general, but I can't get the history to work. Readline, if I understand correctly, is supposed to allow Bash-like functionality where you can cycle through the history with the up and down arrows. My program calls readline_add_history() for each line, but it doesn't respond when I try the arrow keys.
What am I doing wrong? Is this actually supposed to be a function of the Readline library, or did I misunderstand?
Thanks...