GNU screen on gnome-terminal

On a vanilla Ubuntu 9.04, you might run into some keyboard input troubles with the default screen configuration. For example, Shift+Tab in Vim (to go backwards through a directory listing) does not work properly.

Solution

Adding


term xterm

to ~/.screenrc seems to fix most of the issues.

Beware that Ubuntu uses something called screen profiles. Look in the ~/.screen-profile directory for a symlink called profile. This is the profile used when you launch screen. Check out that file and ensure that the ~/.screenrc is being read.