diff options
author | P. 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) |
commit | 2f955c5d17d2eecd93454898439b2aa8c85fe7d8 (patch) | |
tree | 5bb024ba9e9d317a38055172834a76b4340404d7 /src | |
parent | 5bd7bc67a177f5c5a93061a1bdb46db3c68f56b6 (diff) | |
download | firman.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.sh | 10 |
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 |