Re: Stop gnome-terminal from clearing screen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2007-12-23 at 15:42 -0800, Bill Moseley wrote:
> Is this the only method to stop gnome-terminal from clearing on
> program exit at this time?
> http://fixlog.blogspot.com/2006/09/stop-gnome-terminal-screen-clear.html

By "this" you are talking about the proposed sledge-hammer way of faking
a vt220 terminal by moving and symlinking?  Clearly, no.

The author correctly noticed the difference in the set TERM env var.
However, his conclusion seems rather brain dead. Instead of simply
setting the variable, he keeps the value and messes with his terminal
definitions. Doh!


As an experiment. try this: Fire up a gnome-terminal. Then do...

  $ export TERM=xterm
  $ man man

Same behavior, the displayed contents of the pager will not be kept on
the screen. As expected, actually, as xterm is the one TERM has been set
to before. Now...

  $ export TERM=linux
  $ man man

Aha! The very behavior that was desired. Without messing around and
invalidating term definitions. Nice.

Now, how do we get this by default? Easy one. Add a line like the above,
setting the TERM env var, to your ~/.bashrc. Done.


BTW, some of the added comments seem to suggest this to be working,
too...

  guenther


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux