summaryrefslogtreecommitdiff
path: root/jterm.hs
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2024-11-08 11:06:07 +1100
committerJustin Bedo <cu@cua0.org>2024-11-08 11:06:12 +1100
commit031ec1e18b48e59e914462b36fa91f5ef1ccee5e (patch)
treec9ccbea853ae96726895eca25d2db0d715b6f90f /jterm.hs
parent13f607e2f4917d2d5a65e737a8cad5a8944c1592 (diff)
fix ctrl-d shortcut
Diffstat (limited to 'jterm.hs')
-rw-r--r--jterm.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/jterm.hs b/jterm.hs
index 9382faf..2b49a2a 100644
--- a/jterm.hs
+++ b/jterm.hs
@@ -369,9 +369,10 @@ handleEvent display win bgcolour fgcolour linecolour selcolour font event = do
-- ctrl-q (write log)
home <- getEnv "HOME"
T.writeFile (home <> "/jterm.log") (R.toText (content b))
- (4, 115) -> do
+ (4, 100) -> do
-- ctrl-d (send without sending to pty)
put $ b {content = content b <> selstr <> " "}
+ (4, 115) -> do
-- ctrl-s (send)
put $ b {content = content b <> selstr <> "\n"}
sendline