From 3ba82e202425261f75f0955803867de65836ac13 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 16 Apr 2010 21:55:20 +0200 Subject: rename infofy functions to inform. what was i smoking to come up with such a weird name anyway --- libui.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libui.sh b/libui.sh index 78c5cee..0470373 100644 --- a/libui.sh +++ b/libui.sh @@ -98,17 +98,17 @@ notify () # like notify, but user does not need to confirm explicitly when in dia mode # $1 str -# $2 0/ this infofy call is part of a successive list of things (eg repeat previous things, keep adding items to a list) (only needed for dia, cli does this by design). +# $2 0/ this inform call is part of a successive list of things (eg repeat previous things, keep adding items to a list) (only needed for dia, cli does this by design). # You can keep several "lists of successive things" by grouping them with # this is somewhat similar to follow_progress. Note that this list isn't cleared unless you set $3 to 1. default 0. (optional). # $3 0/1 this is the last one of the group of several things (eg clear buffer). default 0. (optional) -infofy () #TODO: when using successive things, the screen can become full and you only see the old stuff, not the new +inform () #TODO: when using successive things, the screen can become full and you only see the old stuff, not the new { successive=${2:-0} succ_last=${3:-0} - debug 'UI' "infofy: $1" - [ `type -t _${LIBUI_UI}_infofy` == function ] || die_error "_${LIBUI_UI}_infofy is not a function" - _${LIBUI_UI}_infofy "$1" $successive $succ_last + debug 'UI' "inform: $1" + [ `type -t _${LIBUI_UI}_inform` == function ] || die_error "_${LIBUI_UI}_inform is not a function" + _${LIBUI_UI}_inform "$1" $successive $succ_last } # logging of stuff @@ -306,7 +306,7 @@ _dia_notify () } -_dia_infofy () +_dia_inform () { str="$1" if [ "$2" != 0 ] @@ -494,7 +494,7 @@ _cli_notify () } -_cli_infofy () +_cli_inform () { echo -e "$1" } -- cgit v1.2.2