diff options
author | Justin Bedo <cu@cua0.org> | 2024-11-07 07:26:42 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2024-11-07 07:34:46 +1100 |
commit | 21f2ce8a37fc8b286bc503f1f010e0cefdaa0594 (patch) | |
tree | 1bc397bce0b28429e951135beced53134ece8ebb | |
parent | 8262643bbc4db671b0f32ff1aa627c05bb8b4963 (diff) |
add ctrl-d for sending to buffer only not pty
-rw-r--r-- | jterm.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |