Added PIPE like functionality to recieve/update active target buffer

This commit is contained in:
2026-12-05 23:48:50 -06:00
parent 0aaac26fc4
commit 4d29095817
4 changed files with 114 additions and 1 deletions
+14
View File
@@ -105,6 +105,20 @@ class IPCServer(Singleton):
conn.close()
break
if "OPIPE" in msg:
data = event_system.emit_and_await("get-current-buffer-pipe")
conn.send(data)
conn.close()
break
if "IPIPE|" in msg:
data = msg.split("IPIPE|")[1].strip()
event_system.emit("update-current-buffer-pipe", data)
conn.close()
break
if msg in ['close connection', 'close server', 'Empty Data...']:
conn.close()