Re: Can you close xterms with multixterm?

From: Don Libes (libes_at_nist.gov)
Date: 05/05/04


Date: 05 May 2004 11:48:47 -0400

Dave P <powersd@fastmail.fm> writes:

> On Mon, 03 May 2004 16:53:05 -0400, Don Libes wrote:
>
> > Dave P <powersd@fastmail.fm> writes:
> >
> >> I am using the most excellent multixterm tool, but when I try to close an
> >> xterm, it won't let me close it. Is there anyway to do this safely?
> >>
> >> Thanks.
> >>
> >> -Dave
> >
> > What do you mean by "close an xterm". That could mean a few different
> > things. But they should all work. For example, when I end the
> > underlying process (for example, type ^D to the shell), the xterm goes
> > away. And when I do a window manager "kill", the xterm goes away.
> >
> > Don
>
> If I control-d out of an xterm, it kills every xterm that multixterm
> spawns, and kills multixterm itself. If I try to close the window by just
> pressing the X in the top right corner, nothing happens. The only way to
> close it and still keep multixterm running is to find the PID of the xterm
> and use kill -9. For me, anyway.
>
> -Dave

Pressing the X sends an X Window System WM_DELETE_WINDOW to the xterm.
Alas, xterm just ignores it when run in this mode. It's clearly a
missing feature in xterm and I've spoken to xterm's author about this
but nothing has ever been done about it. If you absolutely need this,
you can edit the xterm source code to add the support.

As an alternative, you can do kill -9 as you said. However it is much
more simpler to tell the X server to close the connection. I have
this bound to alt-k in my window manager. I also have
WM_DELETE_WINDOW bound to a keystroke, too. Since both are bound to
keystrokes, my window manager doesn't bother to display the X in the
titlebars.

By the way, I'm not sure what you mean by "out of an xterm". If this
is not what you expect you need to provide more detail.

Don



Relevant Pages

  • Re: Can you close xterms with multixterm?
    ... >> spawns, and kills multixterm itself. ... xterm just ignores it when run in this mode. ... > this bound to alt-k in my window manager. ...
    (comp.lang.tcl)
  • Re: Can you close xterms with multixterm?
    ... >> I am using the most excellent multixterm tool, but when I try to close an ... If I control-d out of an xterm, it kills every xterm that multixterm ...
    (comp.lang.tcl)
  • Re: "Killed" Message On Linux (Running From BASH)
    ... Lars Kellogg-Stedman wrote: ... >> this what happens when another program kills a Perl script?), ... >> could be causing this. ... > In xterm 1, run: ...
    (comp.lang.perl.misc)
  • Re: x window / starting the desktop
    ... GNOME is what I see? ... Some clients, such as xterm and firefox, if run as the only clients on top of X, would appear to be all there is to the computer. ... You can have a "desktop environment", such as Gnome or KDE, that includes both the window manager and a collection of clients that work well together. ...
    (Debian-User)
  • Re: x window / starting the desktop
    ... GNOME is what I see? ... Some clients, such as xterm and firefox, if run as the only clients on top of X, would appear to be all there is to the computer. ... You can have a "desktop environment", such as Gnome or KDE, that includes both the window manager and a collection of clients that work well together. ...
    (Debian-User)