wez/telnetjs — Issue #1: NAWS sub-negotiation is not handled when a width our height is 255.
Author: joshuah
Created: 2012-02-10 18:21:39+00:00
State: open

Clients which properly escape their NAWS sub negotiation will show incorrect window sizes if the width or height is 255 characters.

As required by the Telnet protocol, any occurrence of 255 in the
subnegotiation must be doubled to distinguish it from the IAC
character (which has a value of 255).

Putty:

window size is 254 x 25
<- The value of 255 is escaped.
window size is 255 x -256

WinTin++

window size is 230 x 22
<- The value 255 was not properly escaped?
window size is 255 x 22