summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 21:24:05 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 21:24:05 (EDT)
commit5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6 (patch)
tree4abce5ad912e700c27be8b10a5e8dab71fbfdb83
parentc3449b5d6f6cd073f123f69d25605b62f9c34861 (diff)
downloadfirman.sh-5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6.zip
firman.sh-5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6.tar.gz
firman.sh-5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6.tar.bz2
term_attr_reset(): New function
-rw-r--r--src/term.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/term.sh b/src/term.sh
index 0146ea1..6ce8d64 100644
--- a/src/term.sh
+++ b/src/term.sh
@@ -241,6 +241,14 @@ term_bg_color_set()
return 0
}
+term_attr_reset()
+{
+ # SGR
+ printf '\033[0m' >"${term_tty}"
+
+ return 0
+}
+
_term_get_byte()
{
# Damn command substitutions eat trailing whitespace. Even if