Skip to content

Instantly share code, notes, and snippets.

@Altreus
Created February 18, 2014 16:54
Show Gist options
  • Save Altreus/9074843 to your computer and use it in GitHub Desktop.
Save Altreus/9074843 to your computer and use it in GitHub Desktop.
force one page of output
1p() {
echo -en "\033[?7l"
"$@" | head -$(expr $(tput lines) - 2)
echo -e "\033[?7h"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment