microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.47k stars 239 forks source link

Consider applying screen size in pty.resize #266

Open jerch opened 5 years ago

jerch commented 5 years ago

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 commented 5 years ago

@jerch is this used by sixel?

jerch commented 5 years ago

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