Пример #1
0
def initialize():
    global fsm_obj

    new_term = termios.tcgetattr(fd)
    #new_term[3] = (new_term[3] & ~termios.ICANON & ~termios.ECHO)
    new_term[3] = (new_term[3] & ~termios.ICANON)

    termios.tcsetattr(fd, termios.TCSAFLUSH, new_term)

    fsm_obj = FSMProcess('calc.xml')
    fsm_obj.set_context(calc_context())
    fsm_obj.start()
Пример #2
0
def initialize():
    global fsm_obj

    new_term = termios.tcgetattr(fd)
    #new_term[3] = (new_term[3] & ~termios.ICANON & ~termios.ECHO)
    new_term[3] = (new_term[3] & ~termios.ICANON)

    termios.tcsetattr(fd, termios.TCSAFLUSH, new_term)

    fsm_obj = FSMProcess('calc.xml')
    fsm_obj.set_context(calc_context())
    fsm_obj.start()
Пример #3
0
def initialize():
    global fsm_obj, fsm_queue

    fsm_obj = FSMProcess('calc.xml')
    fsm_queue = fsm_obj.get_queue()
    fsm_obj.start()