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

Return Window even when pixel measurements not reported in ioctl #115

Merged

Conversation

erikjuhani
Copy link
Contributor

Hey! 👋

I was trying out pls, but unfortunately the grid option does not work on my setup, which is using tmux and alacritty.

Above is the current change, and below is the newest release version of pls.
Screenshot 2024-10-02 at 22 40 56


Seems like without the window we cannot calculate the grid columns properly, but set the column amount as one, which results the grid option not working in terminal emulators like Alacritty that do not support Kittys's terminal graphics protocol.

This commit removes the pattern match and returns the supports_gfx boolean and window separately. Now when the window is returned the grid is properly rendered.

Tested on Alacritty version 0.13.2.

erikjuhani and others added 4 commits October 2, 2024 22:31
Without the window we cannot calculate the grid columns properly, but
set the column amount as one, which results the grid option not working
in terminal emulators like Alacritty that do not support Kittys's
terminal graphics protocol.

This commit removes the pattern match and returns the supports_gfx
boolean and window separately. Now when the window is returned the grid
is properly rendered.

Tested on Alacritty version `0.13.2`.
@dhruvkb dhruvkb changed the title Return window even when the terminal does not support gfx Return Window even when pixel measurements not reported in ioctl Oct 7, 2024
@dhruvkb dhruvkb merged commit f8fdfa4 into pls-rs:main Oct 7, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants