Jürgen, I tried enabling WINCH-SETS-⎕PW option in SVN 1802 running on macOS, and found that a windows resize did not does not resize the window in the macOS Terminal.app. Adding Mike Hall's proposed changes to main.cc <http://main.cc/>, and ⎕PW will now set according to the window size.
There may be a side effect, though. With the option set and Mike's code inserted, ⎕PW will be set to whatever the current terminal width is, not the IBM APL2 default of 80. You are correct that the macOS native windowing system (Quartz) is not X11 based. The Terminal app does respond to window resizing with the signal that you'd expect. But it does appear that the ioctl TIOCGWINSZ does not have the same value (0x5413) as with GNU/Linux. Mike's changes fix that (and as he states, shouldn't break the code for any other platform that either has already defined TIOCGWINSZ, or expects it to be 0x5413. I'll port the change to Linux (Fedora 41) just to make sure. While we may all be fond of X11, it has not been getting much upstream maintenance and its days may be numbered. Because of the lack of upstream development, Linux distros are now starting to default to Wayland (with X11 application compatibililty being provided by Xwayland). GNOME has supported Wayland for some time now, and KDE Plasma also now supports it. Other desktop environments are starting to add support as well. Fedora 41 Workstation (GNOME-based) doesn't even install the xorg server in new installations (it's still available in the repos though). Yes, there are some applications that still require capabilities of X11 that Wayland doesn't provide. I do believe, though, that the gap is going to close. - Paul > On Dec 21, 2024, at 12:04 PM, Dr. Jürgen Sauermann <mail@jürgen-sauermann.de> > wrote: > > Hi Kacper, > > thanks for reminding us of that option. The user can specify this behavior > in one of her preference files (i.e.$HOME/.config/gnu-apl.d/preferences for > one user;s preferences, or /etc/gnu-apl.de/preferences for system-wide > GNU APL preferences. > > The option is: > > ############################################################################### > # > # With the option below you can cause the WINCH signal to change ⎕PW. The > # intended effect is that resizing of the terminal window causes GNU APL > # to adapt itself to the new window size. This seems to work on GNU/Linux but > # may not work on other platforms! USE AT YOUR OWN RISK. > # > # WINCH-SETS-⎕PW Yes > > and is., like above, disabled bu default. What I don't know, though, is > whether > Apple sends this signal when the window size is changed? It should always work > if the underlying window system uses X, although I am afraid that some apple > platforms may not be X-based (why not? X is great!). > > Best Regards, > Jürgen > > > On 12/21/24 15:42, Kacper Gutowski wrote: >> On Sat, 21 Dec 2024 at 03:56, Blake McBride wrote: >>> Quad-PW should not change with the screen size. It is not used for screen >>> display only. Quad-PW should always default to 80 to be consistent with >>> IBM APL. >> GNU APL has an option to make it adjust automatically to the window >> size. It's not on by default. >> >> -k >> >