diff options
Diffstat (limited to 'src/screen.cpp')
-rw-r--r-- | src/screen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/screen.cpp b/src/screen.cpp index e248079a..dc78d227 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -1448,6 +1448,7 @@ void s_reset(screen_t *s, screen_reset_mode_t mode) // now we are certainly on a new line. But we may have dropped the omitted newline char on it. So append enough spaces to overwrite the omitted newline char, and then abandon_line_string.append(non_space_width, L' '); abandon_line_string.push_back(L'\r'); + abandon_line_string.append(L"\x1b[2K"); //clear all the spaces from the new line const std::string narrow_abandon_line_string = wcs2string(abandon_line_string); write_loop(STDOUT_FILENO, narrow_abandon_line_string.c_str(), narrow_abandon_line_string.size()); |