From 1eb0096059e1d8b68cbbf1c783c28f29d43acdca Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 31 Jan 2011 08:07:27 -0500 Subject: [PATCH] Less flicker on debug_printout() --- terminal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminal.cpp b/terminal.cpp index fb5d3b4..02fd6ad 100644 --- a/terminal.cpp +++ b/terminal.cpp @@ -123,12 +123,12 @@ void Emulator::Esc_dispatch( Parser::Esc_Dispatch *act ) void Emulator::debug_printout( int fd ) { std::string screen; - screen.append( "\033[H\033[2J" ); + screen.append( "\033[H" ); for ( int y = 0; y < fb.ds.get_height(); y++ ) { for ( int x = 0; x < fb.ds.get_width(); x++ ) { char curmove[ 32 ]; - snprintf( curmove, 32, "\033[%d;%dH", y + 1, x + 1 ); + snprintf( curmove, 32, "\033[%d;%dH\033[X", y + 1, x + 1 ); screen.append( curmove ); Cell *cell = fb.get_cell( y, x ); if ( cell->overlapping_cell ) continue;