summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2024-11-07 07:26:42 +1100
committerJustin Bedo <cu@cua0.org>2024-11-07 07:34:46 +1100
commit21f2ce8a37fc8b286bc503f1f010e0cefdaa0594 (patch)
tree1bc397bce0b28429e951135beced53134ece8ebb
parent8262643bbc4db671b0f32ff1aa627c05bb8b4963 (diff)
add ctrl-d for sending to buffer only not pty
-rw-r--r--jterm.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/jterm.hs b/jterm.hs
index 0d60341..c7498a6 100644
--- a/jterm.hs
+++ b/jterm.hs
@@ -371,6 +371,8 @@ handleEvent display win bgcolour fgcolour linecolour selcolour font event = do
home <- getEnv "HOME"
T.writeFile (home <> "/jterm.log") (R.toText (content b))
(4, 115) -> do
+ -- ctrl-d (send without sending to pty)
+ put $ b {content = content b <> selstr <> " "}
-- ctrl-s (send)
put $ b {content = content b <> selstr <> "\n"}
sendline