Each screen (primary and alternate) retains the state of the current charset when DECSC (save cursor) is called. Move the CharsetState into the screen to enable saving the state with each screen. Add a test for charset state on screen change