From 947d0a27b723cbeafee1b22696bbd2f07620e2bd Mon Sep 17 00:00:00 2001 From: "R. Richard" Date: Mon, 26 Aug 2019 14:53:52 +0200 Subject: [PATCH] History monitor should only emit events --- tfw/components/terminal/history_monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tfw/components/terminal/history_monitor.py b/tfw/components/terminal/history_monitor.py index 26b230d..8b34e03 100644 --- a/tfw/components/terminal/history_monitor.py +++ b/tfw/components/terminal/history_monitor.py @@ -2,6 +2,7 @@ from re import findall from re import compile as compileregex from abc import ABC, abstractmethod +from tfw.internals.networking import Intent from tfw.internals.inotify import InotifyObserver @@ -58,7 +59,7 @@ class HistoryMonitor(ABC, InotifyObserver): self.uplink.send_message({ 'key': f'history.{self.domain}', 'value': command - }) + }, intent=Intent.EVENT) class BashMonitor(HistoryMonitor):