1

I have this problem while working on a screen session that the terminal line gets overwritten. If I detach from the screen session then I don't run into this problem.

Here are some of the configurations that I believe might help:

[~]$cat ~/.screenrc
altscreen on
defscrollback 15000
termcapinfo xterm* ti@:te@
termcapinfo *  vb=:
vbell off

[~]$screen --version
Screen version 4.01.00devel (GNU) 2-May-06

[~]$echo $SHELL
/bin/bash

[~]$echo $COLUMNS
234

[~]$echo $TERM
screen

[~]$echo $PS1
\[\e[1;32m\][\w]\$\[\e[0m\]

I have shopt -s checkwinsize in my .bashrc. I've gone through this but I already have most of what is suggested (enclosing colored PS1 in [ and ] and having COLUMNS set to a reasonably large value). Is there anything else that I need to set as part of my environment to fix this? The one obvious difference I see is that TERM is set to xterm when I detach from a screen session.

Illustrations that I hope might help explain my problem:

Initial:

Before overwrite

After overwrite:

After overwrite

On detaching from screen:

On detaching from screen

Zoso
  • 111

0 Answers0