Re: [Rd] closing R graphics windows?

2020-05-27 Thread Abby Spurdle
> The only annoying thing for me is that 'plot()' is not interruptible, so > neither Ctrl-C nor the window manager can stop a plot once it has started - > but I submitted a bug to fix this a long time ago. If I use the keyboard to > close the window while a plot is being drawn, then it has to

Re: [Rd] closing R graphics windows?

2020-05-26 Thread Jan T. Kim via R-devel
>From my rusty memory of X11 hacking, this should be elementary at the X11 end of things -- something along the lines of adding key event handling and responding to the Ctrl-W event. There may be no need for this for X11, though, as the normal X11 way is to have the window manager manage such

Re: [Rd] closing R graphics windows?

2020-05-26 Thread frederik
I use keyboard shortcuts to interact with my window manager. One of those shortcuts closes the currently focused window. This is on Linux. The only annoying thing for me is that 'plot()' is not interruptible, so neither Ctrl-C nor the window manager can stop a plot once it has started - but I

[Rd] closing R graphics windows?

2020-05-26 Thread Ben Bolker
   Does anyone have any idea how hard it would be/where to start if one wanted to hack/patch R to allow X11 graphics windows that had keyboard focus to be closed with standard keyboard shortcuts (e.g. Ctrl-W to close on Linux)?  Has this been suggested/tried before?    cheers     Ben