from tfw.components import TerminalCommands class TerminalCommandsEventHandler(TerminalCommands): keys = ['history.bash'] def handle_event(self, message, _): command = message['value'] self.callback(command)