]> git.armaanb.net Git - charsel.git/blobdiff - charsel
added comment support to charfile, beutification
[charsel.git] / charsel
diff --git a/charsel b/charsel
index 077b10f87f8e11bf2c0e29cbdc1b528b31fe9528..a8b5e66c5771848ae71e6dcd4fda322a19afd076 100755 (executable)
--- a/charsel
+++ b/charsel
@@ -50,12 +50,19 @@ clear
 # Main program
 while :
 do
-  # Format charfile into table, showing only the shortcuts below the divider in the charfile
+  # Format output
+  echo "*---------*---------------*"
+  echo "| CHARSEL | " $1
+  echo "*---------*---------------*"
+  echo ""
+
   cat $CHARFILE \
+    | sed -e '/^[ \t]*#/d' \
     | grep -A 100 - \
     | tail -n +2 \
     | column -t -N input,output --output-separator ' | ' --separator ','
 
+  echo ""
   echo "*-------------------------*"
   echo "| previous shorcode:" $INPUT
   echo "| previous output:  " $OUTPUT