terminfo: tighten up the rv/xr regular expressions

This commit is contained in:
Daniel Eklöf 2024-03-29 11:40:47 +01:00
parent 8e79ceba9e
commit 3d0d9036fd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 2 deletions

View file

@ -120,6 +120,8 @@
* `1004` (enable focus in/out events) removed from the `XM` terminfo
capability. To enable focus in/out, use the `fe` and `fd`
capabilities instead.
* Tightened the regular expression in the `rv` terminfo capability.
* Tightened the regular expression in the `xr` terminfo capability.
[1526]: https://codeberg.org/dnkl/foot/issues/1526
[1528]: https://codeberg.org/dnkl/foot/issues/1528

View file

@ -251,7 +251,7 @@
rmxx=\E[29m,
rs1=\Ec,
rs2=\E[!p\E[4l\E>,
rv=\E\\[[0-9]+;[0-9]+;[0-9]+c,
rv=\E\\[>1;[0-9][0-9][0-9][0-9][0-9][0-9];0c,
sc=\E7,
setrgbb=\E[48\:2\:\:%p1%d\:%p2%d\:%p3%dm,
setrgbf=\E[38\:2\:\:%p1%d\:%p2%d\:%p3%dm,
@ -275,7 +275,7 @@
u9=\E[c,
vpa=\E[%i%p1%dd,
xm=\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;,
xr=\EP>\\|[ -~]+\E\\\\,
xr=\EP>\\|foot\\([0-9]+\\.[0-9]+\\.[0-9]+(-[0-9]+-g[a-f[0-9]+)?\\)?\E\\\\,
# XT,
# AX,