terminfo: add status line capabilities: hs, dsl, fsl and tsl

* hs  - boolean, signals status line availability
* tsl - to_status_line: begin an OSC 2 sequence (set window title)
* fsl - from_status_line: OSC terminator
* dsl - disable status line: \E]2;\E\\ - clears the window title

Closes #242
This commit is contained in:
Daniel Eklöf 2020-12-18 13:46:57 +01:00
parent 34fe1e3f81
commit fa93a97a08
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 7 additions and 0 deletions

View file

@ -92,6 +92,9 @@ means foot can be PGO:d in e.g. sandboxed build scripts. See
* OSC 777;notify: desktop notifications. Use in combination with the
new **notify** option in `foot.ini`
(https://codeberg.org/dnkl/foot/issues/224).
* Status line terminfo capabilities `hs`, `tsl`, `fsl` and `dsl`. This
enables e.g. vim to set the window title
(https://codeberg.org/dnkl/foot/issues/242).
### Changed

View file

@ -16,6 +16,7 @@ foot+base|foot base fragment,
bce,
bw,
ccc,
hs,
km,
mir,
msgr,
@ -59,11 +60,13 @@ foot+base|foot base fragment,
dim=\E[2m,
dl1=\E[M,
dl=\E[%p1%dM,
dsl=\E]2;\E\\,
ech=\E[%p1%dX,
ed=\E[J,
el1=\E[1K,
el=\E[K,
flash=\E]555\E\\,
fsl=\E\\,
home=\E[H,
hpa=\E[%i%p1%dG,
ht=^I,
@ -265,6 +268,7 @@ foot+base|foot base fragment,
smul=\E[4m,
smxx=\E[9m,
tbc=\E[3g,
tsl=\E]2;,
u6=\E[%i%d;%dR,
u7=\E[6n,
u8=\E[?%[;0123456789]c,