mirror of
				https://github.com/avatao-content/test-tutorial-framework
				synced 2025-11-04 04:52:56 +00:00 
			
		
		
		
	Initialize HistoryMonitor in TerminadoEventHandler callee
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user