DECOM should be reset only after entering alternate screen as it also changes cursor position. Fixes #3176