Output EL (erase line) when possible

This commit is contained in:
Keith Winstein
2012-03-10 04:30:04 -05:00
parent 66c6c0669a
commit ac16f9127c
+7 -2
View File
@@ -237,10 +237,15 @@ void Display::put_cell( bool initialized, FrameState &frame, const Framebuffer &
break;
}
}
snprintf( tmp, 64, "\033[%dX", clear_count );
frame.append( tmp );
frame.x += clear_count;
if ( frame.x >= f.ds.get_width() ) {
snprintf( tmp, 64, "\033[K" );
} else {
snprintf( tmp, 64, "\033[%dX", clear_count );
}
frame.append( tmp );
return;
}