Replace all printf/cout to bufered print. Start migration to ncurses