summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2024-11-08 11:03:44 +1100
committerJustin Bedo <cu@cua0.org>2024-11-08 11:05:28 +1100
commit13f607e2f4917d2d5a65e737a8cad5a8944c1592 (patch)
treec274e63f06625e60307d6f37244e6e656b3971d3
parent2cb9fe7985b86e04c80f9181a1b3dc4f7c681e6b (diff)
fix pty cursor positioning after restripping buffer
-rw-r--r--jterm.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/jterm.hs b/jterm.hs
index 904dbfe..9382faf 100644
--- a/jterm.hs
+++ b/jterm.hs
@@ -351,7 +351,7 @@ handleEvent display win bgcolour fgcolour linecolour selcolour font event = do
delins end (R.length (content b)) ""
(4, 108) ->
-- ctrl-l (restrip buffer of ansi codes)
- delins 0 (R.length (content b)) (content b & R.toText & stripAnsiEscapeCodes & R.fromText)
+ delins' True 0 (R.length (content b)) (content b & R.toText & stripAnsiEscapeCodes & R.fromText)
(4, 99) -> lift $ do
-- ctrl-c (copy)
storeBuffer display (R.toText selstr & T.unpack) 0