From: Ian Campbell Subject: Re: [PATCH] xentop.c: Change curses painting behavior to avoid flicker Date: Wed, 18 Jul 2012 08:50:28 +0100 Message-ID: <1342597828.18848.18.camel@dagon.hellion.org.uk> References: <20485.26502.956176.263396@mariner.uk.xensource.com> <20120717183908.b6711e60207c3e94444a0961@parasite.cc> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120717183908.b6711e60207c3e94444a0961@parasite.cc> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: slam Cc: "xen-devel@lists.xensource.com" , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2012-07-18 at 00:39 +0100, slam wrote: > On Tue, 17 Jul 2012 14:24:22 +0100 > Ian Jackson wrote: > > > Jason McCarver writes ("[PATCH] xentop.c: Change curses painting behavior to avoid flicker"): > > > Currently, xentop calls clear() before drawing the screen and calling > > > refresh(). This causes the entire screen to be repainted from scratch > > > on each call to refresh(). It is inefficient and causes visible flicker > > > when using xentop. > > > > > > This patch fixes this by calling erase() instead of clear() which overwrites > > > the current screen with blanks instead. The screen is then drawn as usual > > > in the top() function and refresh() is called. This method allows curses > > > to only repaint the characters that have changed since the last call > > > to refresh(), thus avoiding the flicker and sending fewer characters to > > > the terminal. > > > > > > In the event the screen becomes corrupted, this patch accepts a CTRL-L > > > keystroke from the user which will call clear() and force a repaint of > > > the entire screen. > > > > > > Signed-off-by: Jason McCarver > > > > Acked-by: Ian Jackson > > > > However, I think this needs to wait for Xen 4.3. We are currently in > > the freeze for the 4.2 release. > > > > Ian. > > I apologize in advance for the newb questions. Is there anything I need > to do to help this patch make it into 4.3? Will I need to re-post it > to the list again at a later date, or is my first post of this > sufficient assuming the patch remains unchanged? I'd recommend reposting once 4.3 opens just to remind us. Ian.