From 745a88f2f6119f28ed951be7711ec9774d59b683 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 10 Aug 2017 02:24:13 +0200 Subject: [PATCH] Revert "Fix clearing abandoned line with VTE (#4243)" Unfortunately, this breaks the expect tests. So, until I can figure out how to unbreak them: This reverts commit 09cb31a172773761a305f7353b44e9bb056a5d98. --- src/screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen.cpp b/src/screen.cpp index 81fc6be37..9b0988276 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -1287,7 +1287,7 @@ void s_reset(screen_t *s, screen_reset_mode_t mode) { // line above your prompt. This doesn't make a difference in normal usage, but copying and // pasting your terminal log becomes a pain. This commit clears that line, making it an // actual empty line. - abandon_line_string.append(str2wcstring(clr_eol)); + abandon_line_string.append(L"\e[2K"); const std::string narrow_abandon_line_string = wcs2string(abandon_line_string); write_loop(STDOUT_FILENO, narrow_abandon_line_string.c_str(),