Skip to content

feat: add alternative get_cell_size() method#139

Open
alissa-huskey wants to merge 1 commit into
lnqs:mainfrom
alissa-huskey:main
Open

feat: add alternative get_cell_size() method#139
alissa-huskey wants to merge 1 commit into
lnqs:mainfrom
alissa-huskey:main

Conversation

@alissa-huskey

Copy link
Copy Markdown

Add an additional method of determining cell size.


The CSI 16 t escape code does not appear to be supported by my terminal (iTerm2), so I added a CSI 14 t query (to get the dimensions of the screen in pixels) and calculated the cell size in combination with shutil.get_terminal_size().

I also added a query_tty() function to wrap capture_terminal_response, and did a bit of (subjective) cleanup.

@lnqs

lnqs commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Thanks for the PR, the code looks good to me. Would you mind fixing the failing checks?

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