This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch tymux-10-quiet-head
in repository terminology.

View the commit online.

commit 042d16d9c540900c8a023c5753e0289af39c112a
Author: Boris Faure <[email protected]>
AuthorDate: Wed Nov 11 19:37:22 2026 +0000

    tests: add irm-runs.sh to check runs of text typed in insert mode
    
    Words, runs that fill or overflow the room left on the row, runs inside
    left and right margins, wide characters and hyperlinks pushed off the
    edge, and REP, all under IRM.
---
 tests/irm-runs.sh   | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 tests/tests.results |  1 +
 2 files changed, 48 insertions(+)

diff --git a/tests/irm-runs.sh b/tests/irm-runs.sh
new file mode 100755
index 00000000..3526f815
--- /dev/null
+++ b/tests/irm-runs.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# shellcheck source=tests/utils.sh
+. "$(dirname "$0")/utils.sh"
+
+# runs of plain ASCII typed in insert mode (IRM), which shift the rest of
+# the row as one character at a time would
+
+# clear screen, fill each row with a pattern to push aside
+printf '\033[2J\033[H'
+for i in 1 2 3 4 5 6 7 8 9 10 11 12; do
+   printf '\033[%d;1H' "$i"
+   printf 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-*/ABCDEFGHIJKL'
+done
+
+printf '\033[4h'
+
+# a word in the middle of a row
+printf '\033[1;10Hword'
+
+# a run that exactly fills the room left before the right edge
+printf '\033[2;71H0123456789'
+
+# a run longer than the room left: it wraps and goes on inserting
+printf '\033[3;75Hthis wraps onto the next row'
+
+# a run at column 1 and a run of one character
+printf '\033[5;1Hfirst\033[5;40Hx'
+
+# runs inside left/right margins
+printf '\033[?69h\033[10;30s'
+printf '\033[6;12Hmargins\033[6;28Hedge'
+printf '\033[7;25Hpast the right margin'
+printf '\033[?69l'
+
+# a wide character pushed apart and off the edge by a run
+printf '\033[8;77H\344\270\255\033[8;70Hpushed'
+printf '\033[9;5H\344\270\255\033[9;4Hsplit'
+
+# hyperlinked cells pushed off the edge by a run
+printf '\033[10;70H\033]8;;http://example.org\033\\link\033]8;;\033\\'
+printf '\033[10;60Hfar enough to push the link out'
+
+# REP of a character, in insert mode
+printf '\033[11;20H-\033[30b'
+printf '\033[12;2H=\033[200b'
+
+printf '\033[4l'
diff --git a/tests/tests.results b/tests/tests.results
index fad0a827..25a6f345 100644
--- a/tests/tests.results
+++ b/tests/tests.results
@@ -228,3 +228,4 @@ tab-one-column.sh 95a395357401ea44a1308017842c3677
 rect-last-column.sh b9ebef7c23ee278b65d7ea16371cdd27
 decslrm-two-columns.sh 2bc3f2840cc2e18a5e68b3d9e053a5f2
 decstbm-one-row.sh 1657d126de08379e16ac0e7ec5693309
+irm-runs.sh d3a480e2a58939db077a06b95712371a

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to