From 5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 21:24:05 -0400 Subject: term_attr_reset(): New function --- 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 -- cgit v0.9.1