about summary refs log tree commit diff
path: root/mless
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-20 18:24:43 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-20 18:24:43 +0200
commitd97e93bd261bdc0489b2b22f5dc63044eba6be79 (patch)
tree74ea6255870e849aca5eb75854b2d67caa7e1ba6 /mless
parent3a77e01ef9f03e566cd68d15236d56243f57e3bd (diff)
downloadmblaze-d97e93bd261bdc0489b2b22f5dc63044eba6be79.tar.gz
mblaze-d97e93bd261bdc0489b2b22f5dc63044eba6be79.tar.xz
mblaze-d97e93bd261bdc0489b2b22f5dc63044eba6be79.zip
mless: special file //scan to see scan output
Diffstat (limited to 'mless')
-rwxr-xr-xmless4
1 files changed, 3 insertions, 1 deletions
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