Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 2 down vote accepted

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.

share|improve this answer
    
Worked, thanks! :) –  Erik Jan 11 '11 at 22:22

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.

share|improve this answer
    
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 2: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 6 at 21:04

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

share|improve this answer
    
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 6 at 20:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.