def test_DECSEL_doesNotRespectISOProtect(self): """DECSEL does not respect ISO protection.""" escio.Write("a") esccmd.SPA() escio.Write("b") esccmd.EPA() esccmd.DECSEL(2) AssertScreenCharsInRectEqual(Rect(1, 1, 2, 1), [blank() * 2])
def test_EL_respectsISOProtection(self): """EL respects SPA/EPA.""" escio.Write("a") escio.Write("b") esccmd.SPA() escio.Write("c") esccmd.EPA() esccmd.CUP(Point(1, 1)) esccmd.EL(2) AssertScreenCharsInRectEqual(Rect(1, 1, 3, 1), [blank() * 2 + "c"])
def test_S8C1T_SPA_EPA(self): """There is no test for SPA and EPA (it's in the erasure tests, like DECSED) so the test for 8 bit controls goes here.""" escio.use8BitControls = True escio.Write(S8C1T) escio.Write("a") escio.Write("b") esccmd.SPA() escio.Write("c") esccmd.EPA() escio.Write(S7C1T) escio.use8BitControls = False esccmd.CUP(Point(1, 1)) esccmd.ECH(3) AssertScreenCharsInRectEqual(Rect(1, 1, 3, 1), [blank() * 2 + "c"])