Support for XTSAVE and XTRESTORE escape sequences #91

Closed
opened 1 year ago by craigbarnes · 2 comments
Collaborator

Are there any plans to support the XTSAVE and XTRESTORE control sequences from xterm? I often find them useful for restoring properties to their original values, rather than using DECSET/DECRST to "reset" them to some presumed value.

Are there any plans to support the `XTSAVE` and `XTRESTORE` control sequences from xterm? I often find them useful for restoring properties to their original values, rather than using `DECSET`/`DECRST` to "reset" them to some presumed value.
dnkl commented 1 year ago
Owner

No, but only because no-one has asked :)

I looked through them quickly, and they don't seem difficult to implement.

Since you've used them... quick question: from what I can tell, you must specify which mode to save/restore, there's no value for Ps that saves/restores all modes? It's fine if you don't know, I can dig it up in the xterm sources, hopefully.

No, but only because no-one has asked :) I looked through them quickly, and they don't seem difficult to implement. Since you've used them... quick question: from what I can tell, you **must** specify which mode to save/restore, there's no value for `Ps` that saves/restores _all_ modes? It's fine if you don't know, I can dig it up in the xterm sources, hopefully.
dnkl added the
easy
enhancement
labels 1 year ago
Poster
Collaborator

... there's no value for Ps that saves/restores all modes?

Not as far as I know. I guess because it would be deemed "wasteful", due to the need to save dozens of properties rather than just a specific few.

The way I use them is by sending, for example:

"\033[?1036;1039s" // XTSAVE
"\033[?1036;1039h" // DECSET
"\033[?1036;1039r" // XTRESTORE
> ... there's no value for `Ps` that saves/restores _all_ modes? Not as far as I know. I guess because it would be deemed "wasteful", due to the need to save dozens of properties rather than just a specific few. The way I use them is by sending, for example: ```c "\033[?1036;1039s" // XTSAVE "\033[?1036;1039h" // DECSET "\033[?1036;1039r" // XTRESTORE ```
dnkl closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.