Readline listener


readline-listener

By default, the terminal listener does not provide any command history or completion. This vocabulary uses libreadline to provide a listener with history, word completion and more convenient editing facilities. History is stored in the file named by $FACTOR_HISTORY, or ~/.factor-history if that isn't set.

If the terminal supports 16-colour or 256-colour modes, and $NO_COLOR isn't set, it will automatically enable coloured and styled output as well. Unlike the GUI listener, it defaults to a light-on-dark theme; if you use a dark-on-light terminal, you may want to add light-mode to your ~/.factor-rc.

The vocabulary defines an entry point, so you can either invoke readline-listener directly, or run the vocabulary using "readline-listener" run or, from the command line, factor -run=readline-listener.