common: cli_readline: Improve command line editing