summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-28 21:36:22 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-28 21:36:22 (EDT)
commit2f955c5d17d2eecd93454898439b2aa8c85fe7d8 (patch)
tree5bb024ba9e9d317a38055172834a76b4340404d7 /src
parent5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6 (diff)
downloadfirman.sh-2f955c5d17d2eecd93454898439b2aa8c85fe7d8.zip
firman.sh-2f955c5d17d2eecd93454898439b2aa8c85fe7d8.tar.gz
firman.sh-2f955c5d17d2eecd93454898439b2aa8c85fe7d8.tar.bz2
term_write(): New function
Diffstat (limited to 'src')
-rw-r--r--src/term.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/term.sh b/src/term.sh
index 6ce8d64..c987031 100644
--- a/src/term.sh
+++ b/src/term.sh
@@ -249,6 +249,16 @@ term_attr_reset()
return 0
}
+term_write()
+{
+ local s="${1}"
+ shift 1
+
+ printf '%s' "${s}" >"${term_tty}"
+
+ return 0
+}
+
_term_get_byte()
{
# Damn command substitutions eat trailing whitespace. Even if