node-pty icon indicating copy to clipboard operation
node-pty copied to clipboard

Consider applying screen size in pty.resize

Open jerch opened this issue 6 years ago • 2 comments

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).

jerch avatar Feb 04 '19 18:02 jerch

@jerch is this used by sixel?

Tyriar avatar Mar 01 '19 00:03 Tyriar

@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.

jerch avatar Mar 03 '19 19:03 jerch