Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
2bcf00402d | ||
![]() |
5d1a3c6783 | ||
![]() |
52f39d9be0 | ||
![]() |
2ea1755cf2 |
2 changed files with 9 additions and 5 deletions
5
Makefile
5
Makefile
|
@ -13,7 +13,10 @@ termcap.erl:
|
|||
clean:
|
||||
[ -f termtypes.master ] && rm termtypes.master || true
|
||||
[ -f termtypes.master.clean ] && rm termtypes.master.clean || true
|
||||
|
||||
|
||||
compile:
|
||||
rebar3 compile
|
||||
|
||||
termtypes.master.clean: termtypes.master
|
||||
cat termtypes.master | grep -v '^#' | grep -v '^\s*$$' > termtypes.master.clean
|
||||
|
||||
|
|
|
@ -118,16 +118,17 @@ cfmt(S) ->
|
|||
cfmt(S, Enabled) ->
|
||||
lists:flatten(cfmt_(S, Enabled)).
|
||||
|
||||
cfmt_([$~, $!, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
|
||||
cfmt_(S, false);
|
||||
cfmt_([$~, $#, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
|
||||
cfmt_(S, false);
|
||||
|
||||
cfmt_([$~, $!, $_, _C | S], false) ->
|
||||
cfmt_(S, false);
|
||||
cfmt_([$~, $#, _C | S], false) ->
|
||||
cfmt_(S, false);
|
||||
cfmt_([$~, $!, _C | S], false) ->
|
||||
cfmt_(S, false);
|
||||
cfmt_([$~, $!, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
|
||||
cfmt_(S, false);
|
||||
cfmt_([$~, $#, $#, _R1, _R2, _G1, _G2, _B1, _B2 | S], false) ->
|
||||
cfmt_(S, false);
|
||||
|
||||
cfmt_([$~, $!, $#, R1, R2, G1, G2, B1, B2 | S], Enabled) ->
|
||||
R = list_to_integer([R1, R2], 16),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue