diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-28 09:03:20 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-28 09:03:20 (EDT) |
commit | 7dbf911a52b83e8afbc4c6358cfaf6492dd16630 (patch) | |
tree | db803304bd9857d718517203277aa38c1539162d /src/ui | |
parent | 29ef1086f59edc27cd38c3c4c6e234116a4845e5 (diff) | |
download | firman.sh-7dbf911a52b83e8afbc4c6358cfaf6492dd16630.zip firman.sh-7dbf911a52b83e8afbc4c6358cfaf6492dd16630.tar.gz firman.sh-7dbf911a52b83e8afbc4c6358cfaf6492dd16630.tar.bz2 |
ui/cli: Write all output to terminal
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/cli.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/cli.sh b/src/ui/cli.sh index b9ae2ea..9262cc1 100644 --- a/src/ui/cli.sh +++ b/src/ui/cli.sh @@ -35,7 +35,7 @@ cli_dbg() local fmt="${1}" shift 1 - printf "Debug: ${fmt}\n" "${@}" + printf "Debug: ${fmt}\n" "${@}" >"$(tty)" } cli_info() @@ -43,7 +43,7 @@ cli_info() local fmt="${1}" shift 1 - printf "${fmt}\n" "${@}" + printf "${fmt}\n" "${@}" >"$(tty)" } cli_warn() @@ -51,7 +51,7 @@ cli_warn() local fmt="${1}" shift 1 - printf "Warning: ${fmt}\n" "${@}" >&2 + printf "Warning: ${fmt}\n" "${@}" >"$(tty)" } cli_err() @@ -59,7 +59,7 @@ cli_err() local fmt="${1}" shift 1 - printf "Error: ${fmt}\n" "${@}" >&2 + printf "Error: ${fmt}\n" "${@}" >"$(tty)" } cli_show_menu() |