Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I Have recently started configuring "screen", I have included my .screenrc below. I have a problem that if windows 0 & 1 (containing bash) are idle for about 10 mins they will close only leaving window 2 containing irssi. Have I done something wrong? is there something i can do to stop this from happening? I have tried searching for similar problems or solutions but I am finding it difficult to find anything relevant.

startup_message off
autodetach on

shell /bin/bash 
defutf8 on
altscreen on

hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'

defscrollback 30000

# Default screens
screen -t bash-0    0
screen -t bash-1    1
screen -t irssi     2   irssi

select 0
share|improve this question
I don't quite get your window configuration, but even as a long time screen user, if you are just getting started i would recommend learning the much better behaved and actively developed tmux instead. GNU-Screen is full of quirks and hasn't been actively developed for some time. – Caleb Jun 22 '11 at 11:59
up vote 5 down vote accepted

Is the TMOUT environment variable set (nothing to do with screen)? If it's set to 600, then bash will close the session after 600 seconds (10 minutes).

share|improve this answer
Agreed. This doesn't sound like any screen behavior I've ever heard of. It sounds like an inactivity logout from your shell. – Mark Mann Jun 23 '11 at 0:14
Thanks that was the problem, a while after posting this i realised that it may also have been bash, but still did not know what to do about it.. Thanks – Lockyc Jun 23 '11 at 3:47

Your Answer


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.