Use readline library and history library for UI