On Tue, Aug 11, 2009 at 09:07:03PM +0530, Partha Chowdhury wrote:
> On Tue, Aug 11, 2009 at 11:13:31AM +0200, Laszlo Papp wrote:
> > ctrl-d can't work for a frozen tab/application... If it worked I wouldn't
> > open this thread.
> > By the way, if it's not implemented, it's just a simple and 'make sense'
> > feature request I think so, but maybe I'm wrong.
>
> using C-d to logout is built-in every terminal emulator and even bash
> also. so it's already implemented !
Not really. C-d is just End-of-file. Any application --such as an
interpreter-- expecting commands on standard input would normally exit
because there is nothing left to process. This would make the existing
terminal emulator also exit, unless told otherwise (i.e. with -hold in
xterm or rxvt-unicode).
In rare cases, you'll need to kill the process holding your terminal
(window). I don't feel it to be a burden, since it is rare. Some
people (including me) don't even have a window manager able to forcibly
close a window.
However, here is a patch (against the tabbed perl extension distributed
with rxvt-unicode 9.06) that would bind shift-up to destroying the
current tab:
--- /usr/lib/urxvt/perl/tabbed 2009-08-11 18:15:22.000000000 +0200
+++ /tmp/tabbed 2009-08-11 18:15:13.000000000 +0200
@@ -316,6 +316,10 @@
$self->make_current ($self->{tabs}[$idx % @{ $self->{tabs}}]);
return 1;
+ } elsif ($keysym == 0xff52) {
+ $tab->destroy;
+
+ return 1;
} elsif ($keysym == 0xff54) {
$self->new_tab;
Enjoy,
--
Bertrand Yvain
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode