Raw escape codes in boxquote too. - tgtimes - The Gopher Times | |
git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit f35cc1c9156940cac6b3bb028ec7865bcc4799d4 | |
parent a0e02d3112c09588b0180cd7aaa143e6b4d51aaa | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sun, 27 Aug 2023 20:34:20 +0200 | |
Raw escape codes in boxquote too. | |
Diffstat: | |
M filters/boxquote.filter | 14 +++++++------- | |
1 file changed, 7 insertions(+), 7 deletions(-) | |
--- | |
diff --git a/filters/boxquote.filter b/filters/boxquote.filter | |
@@ -2,14 +2,14 @@ | |
export TERM=linux | |
-reset="$(tput sgr0)" | |
-italicformat="$(tput sitm)" | |
-italicreset="$(tput ritm)" | |
-boldformat="$(tput bold)" | |
+reset="$(echo -ne "\033[0m")" | |
+italicformat="$(echo -ne "\033[3m")" | |
+italicreset="$(echo -ne "\033[23m")" | |
+boldformat="$(echo -ne "\033[1m")" | |
boldreset="$(echo -ne "\033[22m")" | |
-underlineformat="$(tput smul)" | |
-underlinereset="$(tput rmul)" | |
-reverseformat="$(tput rev)" | |
+underlineformat="$(echo -ne "\033[4m")" | |
+underlinereset="$(echo -ne "\033[m")" | |
+reverseformat="$(echo -ne "\033[7m")" | |
reversereset="$(echo -ne "\033[27m")" | |
redcolor="$(tput setaf 1)" |