aboutsummaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index a7b7b11..795641d 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -387,6 +387,15 @@ rpcEventHandlers.set(Relay.Event.BufferActivate, e => {
}
})
+rpcEventHandlers.set(Relay.Event.BufferInput, e => {
+ let b = buffers.get(e.bufferName)
+ if (b === undefined)
+ return
+ if (b.historyAt == b.history.length)
+ b.historyAt++
+ b.history.push(e.text)
+})
+
rpcEventHandlers.set(Relay.Event.BufferClear, e => {
let b = buffers.get(e.bufferName)
if (b !== undefined)