From bc3297aa75680269d4d626ea64543e0855da8db6 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Sat, 10 Mar 2012 06:42:21 -0500 Subject: [PATCH] Small cleanup to generated output when predictions active --- configure.ac | 2 +- debian/changelog | 6 ++++++ src/frontend/terminaloverlay.cc | 2 ++ src/terminal/terminaldisplay.cc | 3 +-- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 00609b6..7defcc1 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.61]) -AC_INIT([mosh], [0.98], [mosh-devel@mit.edu]) +AC_INIT([mosh], [0.98a], [mosh-devel@mit.edu]) AM_INIT_AUTOMAKE([-Wall -Werror foreign]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_CONFIG_SRCDIR([src/frontend/mosh-client.cc]) diff --git a/debian/changelog b/debian/changelog index f97c0a8..ae9955b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mosh (0.98a-1) unstable; urgency=low + + * Small cleanup to generated terminal output when predictions active + + -- Keith Winstein Sat, 10 Mar 2012 06:40:24 -0500 + mosh (0.98-1) unstable; urgency=low * Version 0.98 released. diff --git a/src/frontend/terminaloverlay.cc b/src/frontend/terminaloverlay.cc index de16828..024700b 100644 --- a/src/frontend/terminaloverlay.cc +++ b/src/frontend/terminaloverlay.cc @@ -51,9 +51,11 @@ void ConditionalOverlayCell::apply( Framebuffer &fb, uint64_t confirmed_epoch, i } if ( !(*(fb.get_cell( row, col )) == replacement) ) { + /* if ( replacement.is_blank() && fb.get_cell( row, col )->is_blank() ) { return; } + */ *(fb.get_mutable_cell( row, col )) = replacement; if ( flag ) { diff --git a/src/terminal/terminaldisplay.cc b/src/terminal/terminaldisplay.cc index 57d3342..4f7fbc3 100644 --- a/src/terminal/terminaldisplay.cc +++ b/src/terminal/terminaldisplay.cc @@ -242,8 +242,7 @@ void Display::put_cell( bool initialized, FrameState &frame, const Framebuffer & /* can we go to the end of the line? */ if ( frame.x + clear_count == f.ds.get_width() ) { - snprintf( tmp, 64, "\033[K" ); - frame.append( tmp ); + frame.append( "\033[K" ); frame.x += clear_count; } else { if ( has_ech ) {