Home | History | Annotate | Download | only in pexpect-2.4

Lines Matching refs:fsm

12 import FSM
16 def Emit (fsm):
18 screen = fsm.memory[0]
19 screen.write_ch(fsm.input_symbol)
21 def StartNumber (fsm):
23 fsm.memory.append (fsm.input_symbol)
25 def BuildNumber (fsm):
27 ns = fsm.memory.pop()
28 ns = ns + fsm.input_symbol
29 fsm.memory.append (ns)
31 def DoBackOne (fsm):
33 screen = fsm.memory[0]
36 def DoBack (fsm):
38 count = int(fsm.memory.pop())
39 screen = fsm.memory[0]
42 def DoDownOne (fsm):
44 screen = fsm.memory[0]
47 def DoDown (fsm):
49 count = int(fsm.memory.pop())
50 screen = fsm.memory[0]
53 def DoForwardOne (fsm):
55 screen = fsm.memory[0]
58 def DoForward (fsm):
60 count = int(fsm.memory.pop())
61 screen = fsm.memory[0]
64 def DoUpReverse (fsm):
66 screen = fsm.memory[0]
69 def DoUpOne (fsm):
71 screen = fsm.memory[0]
74 def DoUp (fsm):
76 count = int(fsm.memory.pop())
77 screen = fsm.memory[0]
80 def DoHome (fsm):
82 c = int(fsm.memory.pop())
83 r = int(fsm.memory.pop())
84 screen = fsm.memory[0]
87 def DoHomeOrigin (fsm):
91 screen = fsm.memory[0]
94 def DoEraseDown (fsm):
96 screen = fsm.memory[0]
99 def DoErase (fsm):
101 arg = int(fsm.memory.pop())
102 screen = fsm.memory[0]
110 def DoEraseEndOfLine (fsm):
112 screen = fsm.memory[0]
115 def DoEraseLine (fsm):
117 screen = fsm.memory[0]
125 def DoEnableScroll (fsm):
127 screen = fsm.memory[0]
130 def DoCursorSave (fsm):
132 screen = fsm.memory[0]
135 def DoCursorRestore (fsm):
137 screen = fsm.memory[0]
140 def DoScrollRegion (fsm):
142 screen = fsm.memory[0]
143 r2 = int(fsm.memory.pop())
144 r1 = int(fsm.memory.pop())
147 def DoMode (fsm):
149 screen = fsm.memory[0]
150 mode = fsm.memory.pop() # Should be 4
153 def Log (fsm):
155 screen = fsm.memory[0]
156 fsm.memory = [screen]
158 fout.write (fsm.input_symbol + ',' + fsm.current_state + '\n')
178 self.state = FSM.FSM ('INIT',[self])