From 7dbf911a52b83e8afbc4c6358cfaf6492dd16630 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 28 Oct 2015 09:03:20 -0400 Subject: ui/cli: Write all output to terminal --- 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() -- cgit v0.9.1