On 2011-02-27 20:36:13 -0500, Thomas Dickey wrote: > >>The goal is to be able to keep the xterm window open and/or to be able > >>to save its data in the following cases: > >> * when the subprocess has crashed (but not if it has terminated > >> "normally"); > > The -hold option does keep the window open.
But according to the man page, the xterm window will remain open all the time, not just when the subprocess terminated with a non-zero exit status. Also, I suppose that this doesn't solve the problem when xterm is run on a remote machine and output on the X server of the local machine: if the remote machine shuts down or the X connection is lost (e.g. due to a network problem), the window will disappear. > There's nothing implemented to "save its data", though that could be > done in principal by reusing the logic for printing the screen, > e.g., to save the scrollback as a file. Yes. > The comment about "exit hook" is a little odd - xterm would either be > configured using an option or resource to do this feature, but wouldn't > have a good way to tell if the "subprocess has crashed". Well, I meant that the exit hook should have access to the exit status of the subprocess if available (the other case is when xterm terminates abnormally, e.g. by receiving a signal like TERM or HUP or due to lost X connection, one should also be able to save the data). > >> * when the X connection has been lost (it is not possible to keep > >> the xterm window open, but it should be possible to save the > >> terminal data and do some clean-up if need be). > > Here, "some clean-up" is vague (I suppose that's whatever is done in the > hypothetical script to which xterm would transfer the saved data). Yes. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110228110556.gb1...@prunille.vinc17.org