taviso / 123elf

A native port of Lotus 1-2-3 to Linux.
1.18k stars 59 forks source link

Investigate SIGWINCH handler #100

Open taviso opened 2 years ago

taviso commented 2 years ago

Investigate if a SIGWINCH handler is possible to readjust when the terminal is resized.

rruhle commented 2 years ago

To get full-screen across most terminals, good argument here for packaging distro-agnostic WmCtrl as dependency with .deb https://askubuntu.com/questions/481517/run-script-full-screen-in-terminal

Temp fix can define Alias script in .bashrc for fullscreen, and also pass a worksheet name to Lotus 1-2-3 https://forums.linuxmint.com/viewtopic.php?t=297449

'# Temp alias script in .bashrc for multiple commands'

alias lotus() {

wmctrl -r~ -b toggle,maximized_vert,maximized_horz '# wmctrl [options] will vary. "-r~" was my active PopOs terminal window, add,fullscreen is another option for -b, $ man wmctrl'

123 -w ~/Desktop/wksht.wk3 '# -w argument to load file specific to 123 at startup,$ man 123' }

rruhle commented 1 year ago

Just discovered built-in terminal command xdotool to get full screen when launching 123

xdotool getactivewindow windowsize --sync 125% 125%

'man xdotool', and 'xdotool help' explain this tool

sjuswede commented 1 year ago

Is this possible to do? It would make use of 123 especially on laptops a lot friendlier. I took a gander at what is available, and sadly my reverse engineering skills are not up to the task.

rruhle commented 1 year ago

My above reference to xdotool relies on the X-Window legacy of most Linux distributions, gradually being replaced by Wayland windowing system.

With a recent Gnome merge request to drop support for X11 entirely, many Linux distros could go to Wayland exclusively, breaking xdotool. A different way to automate full screen from the linux terminal will be needed.