Пример #1
0
    def test_DSCSCL_Level3_SupportsDECRQMDoesntSupportDECSLRM(self):
        # Set level 3 conformance
        esccmd.DECSCL(63, 1)

        # Make sure DECRQM is ok.
        esccmd.DECRQM(esccmd.IRM, DEC=False)
        escio.ReadCSI('$y')

        # Make sure DECSLRM fails.
        esccmd.DECSET(esccmd.DECLRMM)
        esccmd.DECSLRM(5, 6)
        esccmd.CUP(Point(5, 1))
        escio.Write("abc")
        AssertEQ(GetCursorPosition().x(), 8)
Пример #2
0
 def test_DECSCL_Level2DoesntSupportDECRQM(self):
     """VT level 2 does not support DECRQM."""
     escio.Write("Hello world.")
     GetScreenSize()
     esccmd.DECSCL(62, 1)
     GetScreenSize()
     # Make sure DECRQM fails.
     try:
         esccmd.DECRQM(esccmd.IRM, DEC=False)
         escio.ReadCSI('$y')
         # Should not get here.
         AssertTrue(False)
     except InternalError, e:
         # Assert something so the test infrastructure is happy.
         AssertTrue(True)
Пример #3
0
 def requestAnsiMode(self, mode):
     esccmd.DECRQM(mode, DEC=False)
     return escio.ReadCSI('$y')
Пример #4
0
 def requestDECMode(self, mode):
     esccmd.DECRQM(mode, DEC=True)
     return escio.ReadCSI('$y', '?')