summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/cli.sh8
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()