aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/tecat.tes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tecat.tes')
-rwxr-xr-xlib/tecat.tes22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/tecat.tes b/lib/tecat.tes
new file mode 100755
index 0000000..5432997
--- /dev/null
+++ b/lib/tecat.tes
@@ -0,0 +1,22 @@
+#!/usr/local/bin/sciteco -8qm
+!*
+ * Replace all control characters with printable representations as in SciTECO.
+ * These characters are printed in reverse using ANSI escape sequences.
+ * This is especially useful as a textconv filter for Git as in
+ * git config --global diff.teco.textconv "sciteco -8qm /usr/local/share/sciteco/lib/tecat.tes"
+ *
+ * You also have to add the following to ~/.gitattributes:
+ * *.teco_ini diff=teco
+ * .teco_session diff=teco
+ * *.tes diff=teco
+ * *.tec diff=teco
+ *!
+0,2EJ !* FIXME: Memory limiting may be too slow *!
+:Q#1"> EBN#1 '
+2 10011000000000Um 
+
+<Q*-1"=|%i-1A'Uc Qc:;
+ Qc-31"> Qc F< ' Qm&(2^*Qc)"N Qc F< '
+  Qc-"=$|^,Qc#64' 
+>
+EX