示例#1
0
 def test_DECRQSS_DECSLRM(self):
     """Note: not in xcode docs, but supported."""
     esccmd.DECSET(esccmd.DECLRMM)
     esccmd.DECSLRM(3, 4)
     esccmd.DECRQSS("s")
     result = escio.ReadDCS()
     AssertEQ(result, "1$r3;4s")
示例#2
0
 def test_S8C1T_DCS(self):
     esccmd.DECSTBM(5, 6)
     escio.use8BitControls = True
     escio.Write(S8C1T)
     esccmd.DECRQSS("r")
     result = escio.ReadDCS()
     escio.Write(S7C1T)
     escio.use8BitControls = False
     AssertEQ(result, "1$r5;6r")
示例#3
0
 def test_DECRQSS_DECSCA(self):
     esccmd.DECSCA(1)
     esccmd.DECRQSS('"q')
     result = escio.ReadDCS()
     AssertEQ(result, '1$r1"q')
示例#4
0
 def test_DECRQSS_DECSCUSR(self):
     esccmd.DECSCUSR(4)
     esccmd.DECRQSS(" q")
     result = escio.ReadDCS()
     AssertEQ(result, "1$r4 q")
示例#5
0
 def test_DECRQSS_SGR(self):
     esccmd.SGR(1)
     esccmd.DECRQSS("m")
     result = escio.ReadDCS()
     AssertEQ(result, "1$r0;1m")
示例#6
0
 def test_DECRQSS_DECSTBM(self):
     esccmd.DECSTBM(5, 6)
     esccmd.DECRQSS("r")
     result = escio.ReadDCS()
     AssertEQ(result, "1$r5;6r")
示例#7
0
 def test_DECRQSS_DECSCL(self):
     esccmd.DECSCL(65, 1)
     esccmd.DECRQSS('"p')
     result = escio.ReadDCS()
     AssertEQ(result, '1$r6' + str(escargs.args.max_vt_level) + ';1"p')
示例#8
0
 def test_DECRQSS_DECSLPP(self):
     esccmd.XTERM_WINOPS(27)
     esccmd.DECRQSS("t")
     result = escio.ReadDCS()
     AssertEQ(result, "1$r27t")