TextRectangle, TELOPT_NAWS and window sizes

Posted by Astarte on Sun 03 Jan 2010 01:43 AM — 3 posts, 12,779 views.

Germany #0
I've been toying with TextRectangle and found that
  • it might be enhanced by just sending new TELOPT_NAWS for a change in size
  • even if you enforce an update by e. g. computing wrap_column manually and use SetOption("wrap_column", newValue), the height will not be computed according to your rectangle which I think is a bug


To amend the latter, I visited
void CMUSHclientDoc::SendWindowSizes (const int iNewWidth)
and replaced
  • pmyView->GetClientRect (&r);

with
  • pmyView->GetTextRect (&r);

and tried it out. It seems to work quite nicely. Maybe you can use this in a future release.

Amended on Sun 03 Jan 2010 01:12 PM by Astarte
Australia Forum Administrator #1
Sounds like a bug, as the NAWS stuff predated the TextRectangle stuff.

I have added the NAWS notification to TextRectangle.

I have amended the size calculation to your suggestion.

Available in version 4.46.
Germany #2
Rocks, thank you.