0

I am using screen with irssi, ssh to some servers. At the moment I have 4 windows "open" in my screen.

Two of those windows is "dead". I can't write something in those, for example.

How do I "exit" a screen window?

Erik
  • 125
  • 1
  • 3

3 Answers3

2

ctrl-A K will kill an unresponsive screen window. That's assuming of course you've not remapped your screen command key from the default ctrl-A.

Phil Hollenback
  • 14,947
  • 4
  • 35
  • 52
1

I noticed that some Windows users have a habit to press Ctrl-S from time to time (usually meaning to save something in other applications), but in putty+screen it blocks the window. To unblock such window one need to press Ctrl-Q. Check if it's not your case. Killing "dead window" is always my last try.

pitr
  • 577
  • 3
  • 6
  • My problem is that I fumble S when I go for ctrl-A, and end up having to hit all sorts of wacky combinations of ctrl-q, ctrl-a q, ctrl-a ctrl-q before I get a response again. – DerfK Jan 12 '11 at 02:49
  • @DerfK Another typo which can be tricky to figure out is typing ctrl-a C instead of ctrl-a c when trying to open a new window. The first visual feedback of either key combination is a blank window, but with ctrl-a c you get prompt shortly afterwards with ctrl-a C you don't. – kasperd Apr 06 '15 at 21:04
-1

You can also delete the file /var/run/screen/[screen_number]

Arek B.
  • 317
  • 1
  • 3
  • 12
  • This answer is so incorrect that it is potentially harmful. You won't terminate any screen windows this way. You may however end up with an entire screen session which you can no longer attach to but what was running inside that screen session will remain running. – kasperd Apr 06 '15 at 20:59