diff --git a/board/common/rootfs/bin/help b/board/common/rootfs/bin/help index 421924f9..cd673618 100755 --- a/board/common/rootfs/bin/help +++ b/board/common/rootfs/bin/help @@ -7,6 +7,17 @@ IT=$(printf '\033[3m') BL=$(printf '\033[5m') H0=$(printf '\033[0m') +noansi() +{ + H1="" + H2="" + DM="" + UL="" + IT="" + BL="" + H0="" +} + overview() { cat <"$fn" - if command -v most; then - most "$fn" - elif command -v less; then - less -R "$fn" - elif command -v more; then - more "$fn" - else - cat "$fn" - fi + # shellcheck disable=SC2086,SC2068 + topic $@ >"$fn" + $pager "$fn" rm "$fn" else - topic $* + topic "$*" fi