charmbracelet / charmbracelet/sequin
Toggling multiple private modes in the same sequence
- Dominant language
- Go
- Stars
- 812
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
This issue concerns toggling private modes, [xterm docs](https://www.xfree86.org/current/ctlseqs.html#:~:text=DEC%20Private%20Mode%20Set)
It is possible to emit separate sequences for each mode, e.g. `\x1b[?1000h` `\x1b[?1006h` `\x1b[?1015h`. When this is put through `sequin` it looks great.
However, it is also possible to toggle multiple modes in a single sequence delimited by semi-colons, e.g. `\x1b[?1000;1006;1015h`, for example this is what Radare2 does when you activate visual mode. Putting that through `sequin` isn't quite as descriptive, i.e. only the first mode is described.
**Describe the solution you'd like**
Having descriptions for all modes within the sequence would be very useful, maybe it would say `Enable private mode "show mouse, mouse SGR ext, mouse URXVT ext"`. As an aside, I think it would be nice to add [1015](https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#:~:text=and%20button%2D%0A%20%20%20%20%20%20%20%20%20%20encodings.-,URXVT%20(1015),-The%20normal%20mouse)
**Describe alternatives you've considered**
Not sure what else.
Happy to submit a PR if this is desired.
Contributor guide
Assessment
This issue has not been assessed yet.