walles / moar

Moar is a pager. It's designed to just do the right thing without any configuration.
Other
587 stars 17 forks source link

[suggestion] Don't clear the screen when exiting #76

Closed EricSOLUTE closed 2 years ago

EricSOLUTE commented 2 years ago

Leave the last screen of output on screen when exiting so that it can be referenced for the next command.

Less does this with the -X option, for example.

❯ moar install.sh
❯
❯ less -X install.sh
#!/bin/bash

set -e -o pipefail

./test.sh

echo

echo 'Installing into /usr/local/bin...'
cp moar /usr/local/bin/moar

echo
echo 'Installed, try "moar moar.go" to see moar in action!'
❯
walles commented 2 years ago

Done in v1.8.4.