3 ms·
If you want to resize the remote terminal it might be easier to determine the size locally with an ioctl and only execute "stty cols/rows" remotely. It might a
by kanox 6y ago
If you want to resize the remote terminal it might be easier to determine the size locally with an ioctl and only execute "stty cols/rows" remotely.
It might also help to export the local TERM value remotely because it's not otherwise passed through a serial port.
- prussian 6y agoThanks to you and the other comment under mine, I revised my snippet. I use to just copy/paste it into screen or tio, but now that I have this tool[1] I don't need to. You're absolutely right I could get the terminal size with tools like resize locally and I probably should set TERM to match. [1] the tool if anyone is interested: https://gist.github.com/adedomin/7e615405a2275b01dbae35521161ba87 https://gist.github.com/adedomin/7e615405a2275b01dbae3552116...