Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new feature and solaris bash 3 support #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
implementing progress-box support
  • Loading branch information
rdtorres committed Jan 22, 2013
commit 744fe8cc21d21a81184a45d30d4c9e39e197d189
21 changes: 20 additions & 1 deletion libui.sh
Original file line number Diff line number Diff line change
@@ -358,6 +358,15 @@ follow_progress ()
_${LIBUI_UI}_follow_progress "$@"
}

# follow the progress of something by showing it's log, updating real-time. It does not need a physcal file to follow
# $1 title
follow_progress_inline ()
{
[ -z "$1" ] && die_error "follow_progress_inline needs a title!"
debug 'UI' "follow_progress_inline: $@"
[ `type -t _${LIBUI_UI}_follow_progress_inline` == function ] || die_error "_${LIBUI_UI}_follow_progress_inline is not a function"
_${LIBUI_UI}_follow_progress_inline "$@"
}



@@ -603,7 +612,11 @@ _dia_follow_progress ()
}



_dia_follow_progress_inline ()
{
title=$1
_dia_dialog --progressbox "$1" 0 0
}

_cli_show_warning ()
{
@@ -845,6 +858,12 @@ _cli_follow_progress ()
[ -z "$3" ] && tail -f $2
}

_cli_follow_progress_inline ()
{
title=$1
echo "Title: $1"
cat
}

libui_sh_init