Ethan Merritt - 2 days ago

You are describing a multi-layered environment that I have no experience with, so I can only offer some general suggestions or pointers. As you probably know, the lack of a frame for the plot window is due to the window manager (or lack of one). You mention xfce is available, but is it actually running? If so, why is it not providing a frame for the window? Moving/resizing/closing/raise/lower is also controlled by the window manager. However, the gnuplot plot windows for both x11 and qt should close in response to hot-keys "q" or "ctrl-q". If this is not the case then it could be that neither the keyboard or the mouse is being given focus so that the plot window receives hot-key or mousing events it can respond to.

It may be relevant that for both the x11 and qt terminals gnuplot splits into two separate processes - one running "gnuplot" and a separate process ("gnuplot_qt" or "gnuplot_x11") responsible for managing the plot window. This pair of processes communicate via pipes. Could it be that your environment is giving focus to the wrong one of these two processes? Or could it be that the pipes are not being set up properly, or are being blocked somehow?

It might be informative to using gnuplot with "set term wxt" instead, since that terminal runs out of the main gnuplot process rather than spawning off a separate process to manage the plot window. Unfortunately I see that the build recipe you link to explicitly disables the wxt terminal.

A desperation fall-back might be to use the kitty terminal "set term kitty", which will draw the graphics in the same window used for your command entry. This would give give you all the normal plot commands, but interaction with the plot is possible only via the arrow keys and hot-keys rather than the mouse. This would require support for the kitty graphics protocol in the terminal emulator that gnuplot is running in.

An even more desperation fall-back would use the sixel terminal "set term sixel". This one acts more or less like the kitty terminal but requires sixel support in the terminal rather than kitty. sixel is more limited in a number of ways, in particular color use.