readline

Library for command-line editing with history and completion

brewmacoslinux
Try with needOr install directly
Source

About

Library for command-line editing

Commands

readline

Examples

Link readline library in C program compilation$ gcc -o myapp myapp.c -lreadline
Check readline version and installation$ pkg-config --modversion readline
Use readline in Python interactive shell$ python3 -c "import readline; print(readline.get_history_length())"