Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request: handle resize escape sequence: ESC [ 8;<height>;<width>t #118

Open
msg opened this issue Nov 7, 2024 · 6 comments
Open

request: handle resize escape sequence: ESC [ 8;<height>;<width>t #118

msg opened this issue Nov 7, 2024 · 6 comments

Comments

@msg
Copy link

msg commented Nov 7, 2024

Currently tym doesn't support handling the resize escape sequence ESC [ 8;<height>;<width>t. It would be nice if was added.

@endaaman
Copy link
Owner

Hi @msg,

Thanks for requesting a new feature.
Are you refering to https://gnome.pages.gitlab.gnome.org/vte/gtk3/signal.Terminal.resize-window.html ?
This seems easy to introduce into tym. I'll implement it when I have some free time soon.

@msg
Copy link
Author

msg commented Nov 11, 2024

I think so. I am unfamiliar with vte from an API stand point. I look forward to testing/using it.

@msg
Copy link
Author

msg commented Nov 18, 2024

I tried your latest commit. It seems to only handle the height change. I tested by doing a:

$ printf "\e[8;40;161t"

And the height changes, but the width doesn't.

@endaaman
Copy link
Owner

Your command:

$ printf "\e[8;40;161t"

and this

$ printf "\x1b[8;40;161t"

are both working on my env.

@msg
Copy link
Author

msg commented Nov 19, 2024

Yeah, I tried it too. It worked. I probably fat fingered it. This works great. Thanks for adding it.

@endaaman
Copy link
Owner

Thanks for checking again. I'm going to release the new version soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants