1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2024-07-03 21:28:47 +00:00

Initialize HistoryMonitor in TerminadoEventHandler callee

This commit is contained in:
Kristóf Tóth 2018-03-29 11:34:53 +02:00
parent 832aae0c32
commit c9196dda75

View File

@ -3,6 +3,7 @@ from tornado.ioloop import IOLoop
from tfw.components.source_code_event_handler import SourceCodeEventHandler
from tfw.components.terminado_event_handler import TerminadoEventHandler
from tfw.components.process_managing_event_handler import ProcessManagingEventHandler
from tfw.components.history_monitor import BashMonitor
from tfw.config import TFWENV
from tfw.message_sender import MessageSender
from tfw.networking.event_handlers.server_connector import ServerUplinkConnector
@ -41,7 +42,7 @@ toggle_next.button_state = False
if __name__ == '__main__':
ide = SourceCodeEventHandler(key='webide', directory=TFWENV.WEBIDE_WD, exclude=['*.pyc'])
terminado = TerminadoEventHandler(key='shell')
terminado = TerminadoEventHandler(key='shell', monitor=BashMonitor(TFWENV.HISTFILE))
terminado.historymonitor.subscribe_callback(cenator)
terminado.historymonitor.subscribe_callback(selectdir)
terminado.historymonitor.subscribe_callback(toggle_next)