summaryrefslogtreecommitdiffstats
path: root/src/ui.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-10-27 14:48:32 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-10-27 14:48:32 (EDT)
commit819bd1403fd1d339eb8722aab1e549f89ce9b7c1 (patch)
treed44ce965fdab22a19cdaede132a463a61bf56b28 /src/ui.sh
parenta767048702ed1883f80f07630d22df5a4cb6a693 (diff)
downloadfirman.sh-819bd1403fd1d339eb8722aab1e549f89ce9b7c1.zip
firman.sh-819bd1403fd1d339eb8722aab1e549f89ce9b7c1.tar.gz
firman.sh-819bd1403fd1d339eb8722aab1e549f89ce9b7c1.tar.bz2
ui: Add UI init, exit, and resume functions
Will be used with TUI.
Diffstat (limited to 'src/ui.sh')
-rw-r--r--src/ui.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui.sh b/src/ui.sh
index 603f714..3df6bc7 100644
--- a/src/ui.sh
+++ b/src/ui.sh
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-ui_functions='dbg info warn err show_menu'
+ui_functions='exit_ui resume_ui dbg info warn err show_menu'
init_ui()
{
@@ -34,4 +34,6 @@ init_ui()
for fn in ${ui_functions}; do
eval "${fn}() { ${ui}_${fn} \"\${@}\"; }"
done
+
+ ${ui}_init_ui
}