Ndialog is a project mainly written in C++ and C, it's free.
Newt-based console dialog utility
Display dialog boxes from shell.
This is similar to the dialog utility, with the exception that this one is based on Newt library (while dialog is based on ncurses).
buildconf.sh
./configure
make install
./NDialog dialog.xml
Look into elements.xml for more information.