davidrg / ckwin

Kermit 95 (C-Kermit for Windows) - scriptable internet and serial communications with terminal emulation
Other
59 stars 15 forks source link

Terminal widths greater than 256 are not supported #186

Closed davidrg closed 1 month ago

davidrg commented 1 year ago

If you resize it larger, you just get white space on the right side of the terminal.

Looks like its probably in issue with the window painting function - its setting the size of the region it will paint to be the size of the display minus the window elements (scrollbars, status/menu/toolbar, etc)

davidrg commented 1 year ago

OS/2 Warp has maximum dimensions for its terminal window (max 255 characters wide, max 8192 characters on screen). Windows NT seems to also have a maximum too though it might depend on screen resolution (I can't set a window wider than 237 columns which fills the width of my primary display).

So changing the max width may only be possible for the GUI version. Its defined by MAXSCRNCOL in ckocon.h and MAXNUMCOL in kclient.hxx. Given this constant affects the size of various arrays and number of iterations on various loops within the application (regardless of how large the terminal window may actually be at any given time) it might be worth considering only bumping this value for builds targeting modern systems so as to not increase resource requirements on Windows 9x and NT.