Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shortcut/command to forcibly close tab #14

Open
balta2ar opened this issue May 8, 2012 · 3 comments
Open

Add shortcut/command to forcibly close tab #14

balta2ar opened this issue May 8, 2012 · 3 comments

Comments

@balta2ar
Copy link

balta2ar commented May 8, 2012

Sometimes, when connection to some server hangs, I get absolutely unresponsive tab which I cannot close: Ctrl-D does not work here. The tab will unfreeze with time, but sometimes it takes whole minutes which is too long to wait.
It would be nice to have a shortcut to close dead tab.

@balta2ar
Copy link
Author

It seems that fix is trivial (http://www.mail-archive.com/[email protected]/msg00619.html):

--- /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;

Dont forget to change 0xff52 which is Shift-Up to something you like.

@mina86
Copy link

mina86 commented Aug 24, 2014

For ssh use enter followed by ~ (tilde) followed by . (dot) to force terminate the connection.

@mina86
Copy link

mina86 commented Aug 9, 2016

By the way, implemented in mina86/urxvt-tabbedex@ac220eb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants