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

Consider applying screen size in pty.resize #266

Open
jerch opened this issue Feb 4, 2019 · 2 comments
Open

Consider applying screen size in pty.resize #266

jerch opened this issue Feb 4, 2019 · 2 comments

Comments

@jerch
Copy link
Collaborator

jerch commented Feb 4, 2019

The typical IOCTL with TIOCGWINSZ to request and TIOCSWINSZ to change the terminal size support two more settings beside cols and rows - xpixel and ypixel.

Would be nice if node-pty also reports/updates those on platforms that support it. This is used by several emulators to inform a slave application about the current screen size (triggered by a WINCH signal).

@Tyriar
Copy link
Member

Tyriar commented Mar 1, 2019

@jerch is this used by sixel?

@jerch
Copy link
Collaborator Author

jerch commented Mar 3, 2019

@Tyriar Not by sixel directly, but could be used by the slave app to determine the actual cell size in pixel which might come handy for graphics output like sixel, yeah.

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

No branches or pull requests

2 participants