From: Jay Freeman (saurik) Date: Thu, 13 Sep 2012 09:41:43 +0000 (-0700) Subject: Use a dummy space to handle the lower-right corner. X-Git-Tag: v0.9.459~4 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/c68747823752d0cd895fa3ec38805f98f0b19f32?ds=inline Use a dummy space to handle the lower-right corner. --- diff --git a/Display.cpp b/Display.cpp index 555bd6d..7e088cb 100644 --- a/Display.cpp +++ b/Display.cpp @@ -135,14 +135,13 @@ void CYDisplayUpdate() { CYDisplayMove(CYCursor()); CYDisplayOutput(putchar, width, prompt); - CYCursor target(CYDisplayOutput(putchar, width, stream.str().c_str(), rl_point)); - if (target.imag() == 0) - putp(cursor_down); + if (current_.imag() == 0) + CYDisplayOutput(putchar, width, " "); putp(clr_eos); - CYDisplayMove(target); + CYDisplayMove(target); fflush(stdout); width_ = width;