Lines Matching refs:fsm

36 def DoEmit (fsm):  argument
38 screen = fsm.memory[0]
39 screen.write_ch(fsm.input_symbol)
41 def DoStartNumber (fsm): argument
43 fsm.memory.append (fsm.input_symbol)
45 def DoBuildNumber (fsm): argument
47 ns = fsm.memory.pop()
48 ns = ns + fsm.input_symbol
49 fsm.memory.append (ns)
51 def DoBackOne (fsm): argument
53 screen = fsm.memory[0]
56 def DoBack (fsm): argument
58 count = int(fsm.memory.pop())
59 screen = fsm.memory[0]
62 def DoDownOne (fsm): argument
64 screen = fsm.memory[0]
67 def DoDown (fsm): argument
69 count = int(fsm.memory.pop())
70 screen = fsm.memory[0]
73 def DoForwardOne (fsm): argument
75 screen = fsm.memory[0]
78 def DoForward (fsm): argument
80 count = int(fsm.memory.pop())
81 screen = fsm.memory[0]
84 def DoUpReverse (fsm): argument
86 screen = fsm.memory[0]
89 def DoUpOne (fsm): argument
91 screen = fsm.memory[0]
94 def DoUp (fsm): argument
96 count = int(fsm.memory.pop())
97 screen = fsm.memory[0]
100 def DoHome (fsm): argument
102 c = int(fsm.memory.pop())
103 r = int(fsm.memory.pop())
104 screen = fsm.memory[0]
107 def DoHomeOrigin (fsm): argument
111 screen = fsm.memory[0]
114 def DoEraseDown (fsm): argument
116 screen = fsm.memory[0]
119 def DoErase (fsm): argument
121 arg = int(fsm.memory.pop())
122 screen = fsm.memory[0]
130 def DoEraseEndOfLine (fsm): argument
132 screen = fsm.memory[0]
135 def DoEraseLine (fsm): argument
137 arg = int(fsm.memory.pop())
138 screen = fsm.memory[0]
146 def DoEnableScroll (fsm): argument
148 screen = fsm.memory[0]
151 def DoCursorSave (fsm): argument
153 screen = fsm.memory[0]
156 def DoCursorRestore (fsm): argument
158 screen = fsm.memory[0]
161 def DoScrollRegion (fsm): argument
163 screen = fsm.memory[0]
164 r2 = int(fsm.memory.pop())
165 r1 = int(fsm.memory.pop())
168 def DoMode (fsm): argument
170 screen = fsm.memory[0]
171 mode = fsm.memory.pop() # Should be 4
174 def DoLog (fsm): argument
176 screen = fsm.memory[0]
177 fsm.memory = [screen]
179 fout.write (fsm.input_symbol + ',' + fsm.current_state + '\n')
336 def do_sgr (self, fsm): argument
338 screen = fsm.memory[0]
339 fsm.memory = [screen]
341 def do_decsca (self, fsm): argument
343 screen = fsm.memory[0]
344 fsm.memory = [screen]
346 def do_modecrap (self, fsm): argument
350 screen = fsm.memory[0]
351 fsm.memory = [screen]