You are not logged in.

#1 2015-07-03 19:38:03

rwd
Member
Registered: 2009-02-08
Posts: 671

[SOLVED] gnu-screen output remains in xfce4-terminal after exiting

Hi all. After some update in the last few months I noticed that exiting or detaching a 'screen' session the output of the screen is still in the terminal below the prompt. My screenrc config is default.
gnu_screen_output_problem.png

Does anyone know how to disable this, so that after exiting/detaching a screen session I get the terminal that I launched the screen session from, but without any remaining output from inside the terminated screen session?

update1: The problem occurs when I use xfce4-terminal as terminal emulator, but not when I use urxvt. I would still like to know how to fix it for xfce4-terminal

update2: Somehow setting the TERM environment variable to 'xterm-256color' instead of the default 'xterm' makes the problem go away for xfce4-terminal.

Adding  'term xterm-256color' to screenrc as described in the arch wiki did not solve it.
I solved it by  changing the ~/.local/share/xfce4-terminal.desktop file:

(...)
   Exec=env TERM=xterm-256color /bin/bash
   Terminal=true 
(...)

as described here : https://bbs.archlinux.org/viewtopic.php?id=175581

Last edited by rwd (2015-09-28 20:37:23)

Offline

Board footer

Powered by FluxBB