From c9196dda75f1f5af9875110a1125c2335c8b125d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 29 Mar 2018 11:34:53 +0200 Subject: [PATCH] Initialize HistoryMonitor in TerminadoEventHandler callee --- solvable/src/demo/event_handler_main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/solvable/src/demo/event_handler_main.py b/solvable/src/demo/event_handler_main.py index b6427ae..a5862ea 100644 --- a/solvable/src/demo/event_handler_main.py +++ b/solvable/src/demo/event_handler_main.py @@ -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)