Return Window
even when pixel measurements not reported in ioctl
#115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey! 👋
I was trying out
pls
, but unfortunately thegrid
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
![Screenshot 2024-10-02 at 22 40 56](https://private-user-images.githubusercontent.com/15418377/373009859-247f8a20-8cf5-40a2-b7f6-6725f481c7fe.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODc0ODUsIm5iZiI6MTczOTI4NzE4NSwicGF0aCI6Ii8xNTQxODM3Ny8zNzMwMDk4NTktMjQ3ZjhhMjAtOGNmNS00MGEyLWI3ZjYtNjcyNWY0ODFjN2ZlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE1MTk0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRmMjM4MzI4NTBhMjkxYTgyMGYxMGJlYWNlMDZiMTIwZDk5ZWM4MDMxZjFkOWFiZjk3ODNkNzEzYTFiYTk0NjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.CnUmL59ywaJlvnT9xpjWXXPIoOT5bm3zAXIUvvzuyqw)
pls
.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
.