Added a nice little class that doesn't mind whether you're using curses or cout