WINDOWSIZE not set correctly by NetworkTerminal
mobluse opened this issue · comments
The WINDOWSIZE is reported to the Telnet server to be 80x25 even though it is 80x34, in my case. This is a problem if you run more
/less
or edit files with e.g. nano
, because e.g. less
scrolls to little and nano
doesn't use the whole screen.
I fixed this in a general way in my fork of FabGL NetworkTerminal.ino. It uses Terminal.getRows()
. I could send a PR, but you don't want PRs. The fix is in exe_telnet()
. Maybe this could be fixed in a way that is faster or consumes less RAM. I'm open to suggestions. There are also other modifications of the original in my fork.