Add linux curses support
Add wrapper to reset terminal
Build output before printing
Remove unnecessary parameter