Raw escape codes in boxquote too. - tgtimes - The Gopher Times
(HTM) git clone git://bitreich.org/tgtimes git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tgtimes
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit f35cc1c9156940cac6b3bb028ec7865bcc4799d4
(DIR) parent a0e02d3112c09588b0180cd7aaa143e6b4d51aaa
(HTM) Author: Christoph Lohmann <20h@r-36.net>
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(-)
---
(DIR) 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)"