diff options
author | P. 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) |
commit | 5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6 (patch) | |
tree | 4abce5ad912e700c27be8b10a5e8dab71fbfdb83 | |
parent | c3449b5d6f6cd073f123f69d25605b62f9c34861 (diff) | |
download | firman.sh-5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6.zip firman.sh-5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6.tar.gz firman.sh-5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6.tar.bz2 |
term_attr_reset(): New function
-rw-r--r-- | src/term.sh | 8 |
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 |