From 2f955c5d17d2eecd93454898439b2aa8c85fe7d8 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 21:36:22 -0400 Subject: term_write(): New function --- (limited to 'src') 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 -- cgit v0.9.1