From d97e93bd261bdc0489b2b22f5dc63044eba6be79 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 20 Jul 2016 18:24:43 +0200 Subject: mless: special file //scan to see scan output --- mless | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mless') diff --git a/mless b/mless index a6f6079..72774e9 100755 --- a/mless +++ b/mless @@ -4,6 +4,8 @@ PATH="${0%/*}:$PATH" if [ "$1" = --filter ]; then + [ "$2" = //scan ] && exec mscan : + mshow "$2" | awk ' function fg(c, s) { return sprintf("\033[38;5;%03dm%s\033[0m", c, s) } function so(s) { return sprintf("\033[1m%s\033[0m", s) } @@ -19,7 +21,7 @@ fi if [ "$#" -eq 0 ] && ! [ -t 0 ]; then msetseq >/dev/null - set -- : + set -- //scan : fi if ! [ -t 1 ]; then -- cgit 1.4.1