- make example safe: addch and print calls will return error if cursor moves
  outside of the window
