summaryrefslogtreecommitdiffstats
path: root/src/ui/cli.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-11-06 00:33:45 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-11-06 00:33:45 (EST)
commit41f764da19048fc2e9ec583c37de73de915811d2 (patch)
treef9885d3dff0f08cd3c601baadad8c0f106d8ef3c /src/ui/cli.sh
parent1bcbaaca746b4784a48eedc70cc3fbad00242eaa (diff)
downloadfirman.sh-41f764da19048fc2e9ec583c37de73de915811d2.zip
firman.sh-41f764da19048fc2e9ec583c37de73de915811d2.tar.gz
firman.sh-41f764da19048fc2e9ec583c37de73de915811d2.tar.bz2
notice(): New function
In the TUI, info() now creates a dialog box without an "OK" button, and notice() creates a box with an "OK" button.
Diffstat (limited to 'src/ui/cli.sh')
-rw-r--r--src/ui/cli.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/cli.sh b/src/ui/cli.sh
index ca78b04..5428319 100644
--- a/src/ui/cli.sh
+++ b/src/ui/cli.sh
@@ -41,6 +41,14 @@ cli_info()
printf "${fmt}\n" "${@}" >"${cli_tty}"
}
+cli_notice()
+{
+ local fmt="${1}"
+ shift 1
+
+ printf "${fmt}\n" "${@}" >"${cli_tty}"
+}
+
cli_warn()
{
local fmt="${1}"