implement interactive mode with linenoise library