Pass sdcv’s output to less
In your .bashrc
add:
function def() {
sdcv -n --utf8-output --color "$@" 2>&1 | \
fold --width=$(tput cols) | \
less --quit-if-one-screen -RX
}
Then, run:
$ bash
And try:
$ def to come
The output should be displayed in less
.
Source: https://owenh.net/stardict
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki sdcv stardic offline