Updated script with curses.

Added curses to the script instead of printing directly to the terminal.
Mergin braches due to remote changes.