Add support for up/down history in `console::readline`. Can be a nice additional feature for https://github.com/ggml-org/llama.cpp/pull/17824