[haiku-development] Aw: Re: Terminal "clear" request - scroll or erase?

  • From: "Siarzhuk Zharski" <zharik@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 5 Mar 2013 15:00:25 +0100 (CET)

> Von: "Ingo Weinhold" <ingo_weinhold@xxxxxx>
> > For example, the "top" utility uses \E[2J control sequence to clear the
> > screen before output updated list of teams information and after some
> > minutes the whole history is filled with previous versions of teams
> > information snapshots. That is looking a bit inaccurate IMO. From the
> > other side in "destructive" clear mode the "top" utility output will
> > "eat" all lines on the current screen, that can make some users nervous
> > too. What is the cleaner?
> 
> On Linux (in Konsole) top first scrolls the old contents out of the 
> visible area and then just periodically overwrites the visible area. I 
> would expect Haiku's top to work the same way. I don't know whether it 
> currently just uses the wrong control sequence(s) for that purpose or 
> whether Terminal doesn't implement them as it should. ssh'ing from Linux 
> to Haiku and vice versa will uncover which one it is.

I have observed that Haiku Terminal receives \E[1,1H \E[2J so that looks like 
our "top" implementation issue.

---
Kind Regards,
 S.Zharski

Other related posts:

  • » [haiku-development] Aw: Re: Terminal "clear" request - scroll or erase? - Siarzhuk Zharski