centering text when setting lower resolution in robot; clearing screen when changing resolution to avoid dirty buffer space and cursor going out of scope