scripts/bsdman: Support for dumb terminals

master
Pierre Neidhardt 2017-06-29 16:13:19 +01:00
parent 6347e7d9e2
commit 3b464be913
1 changed files with 1 additions and 1 deletions

View File

@ -36,4 +36,4 @@ if ! command -v curl >/dev/null 2>&1; then
AGENT="wget -q -O - "
fi
$AGENT "$DOMAIN/man.cgi?query=$PAGE&apropos=0&sektion=$SECTION&manpath=$MANPATH&arch=default&format=ascii" | less
$AGENT "$DOMAIN/man.cgi?query=$PAGE&apropos=0&sektion=$SECTION&manpath=$MANPATH&arch=default&format=ascii" | if [ "$TERM" = dumb ]; then cat; else less; fi