From 869b1875f2febe169f5701e41de3e653e7a8343c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 29 Oct 2015 20:48:49 -0400 Subject: message(): New function --- (limited to 'src/ui/cli.sh') diff --git a/src/ui/cli.sh b/src/ui/cli.sh index b341c9e..369694c 100644 --- a/src/ui/cli.sh +++ b/src/ui/cli.sh @@ -16,6 +16,7 @@ # along with this program. If not, see . cli_tty='' +cli_msg='' cli_init_ui() { @@ -53,6 +54,16 @@ cli_err() printf "Error: ${fmt}\n" "${@}" >"${cli_tty}" } +cli_message() +{ + local msg="${1}" + shift 1 + + printf '%s\n\n' "${msg}" >"${cli_tty}" + + return 0 +} + cli_show_menu() { local title="${1}" -- cgit v0.9.1