cursor_get (&x, &y);
if (y < srTop || y > srBottom)
break;
+ if (y == con.b.srWindow.Bottom)
+ {
+ WriteConsoleW (get_output_handle (), L"\033[2K", 4, 0, 0);
+ wpbuf.empty ();
+ break;
+ }
if (y == con.b.srWindow.Top
&& srBottom == con.b.srWindow.Bottom)
{
cursor_get (&x, &y);
if (y < srTop || y > srBottom)
break;
+ if (y == con.b.srWindow.Bottom)
+ {
+ WriteConsoleW (get_output_handle (), L"\033[2K", 4, 0, 0);
+ wpbuf.empty ();
+ break;
+ }
__small_swprintf (bufw, L"\033[%d;%dr",
y + 1 - con.b.srWindow.Top,
srBottom + 1 - con.b.srWindow.Top);