blob: 543299727ba64bb30ed3a2361547bd5d87143b86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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< '
[7m Qc-"=$|^,Qc#64' [27m
>
EX
|