Reputation:
I have a dialog window using ncurses. But in that dialog window i want to show my driver.sh outputs, how can i do that? Or at-least something like its complete or not complete.
1) /tmp/main.sh
if [ "$output" = "1" ]; then
# here in this window the driver.sh ouput should show
dialog --msgbox "Here it should show the output of driver.sh" 10 100
configure=`/tmp/driver.sh`;
fi
2) /tmp/driver.sh
cd /tmp;
if [ ! -d "${pkgdirectory}/test" ]; then
cd ${pkgdirectory}
git clone git://code.test.com/git/test.git;
cd ${pkgdirectory}/test;
./autogen.sh;
make;
make install;
else
cd ${pkgdirectory}/test;
./autogen.sh;
make;
make install;
fi
Upvotes: 0
Views: 477
Reputation: 38195
dialog
has a --tailbox
option (and also a --tailboxbg
one) that does pretty much what you need.
Upvotes: 1