Re: [PATCH] don't overwrite terminal contents on clear when alternate-screen=off

2011-08-23 Thread Fabian Groffen
e either, and would like to replace screen with tmux, is there a way I can detect this situation in the code so I can get the same behaviour as outside tmux? Thanks, -- Fabian Groffen Gentoo on a different level -- Get a

Re: [PATCH] don't overwrite terminal contents on clear when alternate-screen=off

2011-08-23 Thread Fabian Groffen
ing things badly. I'm not sure if it is the right thing though. I expect not, because it will mess up the screen when multiple panes are active. Is there a way to know if there is just a single pane in the window? Then I guess the terminal output preserving code from above should

Re: [PATCH] don't overwrite terminal contents on clear when alternate-screen=off

2011-08-22 Thread Fabian Groffen
On 22-08-2011 22:22:16 +0200, Fabian Groffen wrote: > Please consider the attached patch. I should have known better, messing with these things is more complicated than it seems. Please ignore, the patch messes up. It seems it's near to impossible to get the same behaviour outside tmu

Re: [PATCH] don't overwrite terminal contents on clear when alternate-screen=off

2011-08-22 Thread Fabian Groffen
On 22-08-2011 22:22:16 +0200, Fabian Groffen wrote: > Please consider the attached patch. I should have known better, messing with these thi

[PATCH] don't overwrite terminal contents on clear when alternate-screen=off

2011-08-22 Thread Fabian Groffen
atch changes the behaviour for that sequence in the tty_cmd_clearscreen function not to overwrite, but rather add empty lines to make the terminal clean. This is only done when alternate-screen is set to off, when this behaviour makes sense. Please consider the attached patch. -- Fabian Groffen Ge