aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/reader.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-10-16 11:53:51 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-10-16 11:53:51 +0800
commit13479fbc2a130d97caeb66f7f56fb89c6be8c489 (patch)
tree672c2b01e8768320b5b78dbff6ce3c88956782a7 /src/reader.cpp
parent226cdc6a28b13189d541f7b11bcfdaa1ce1fc82b (diff)
reader.cpp: send carriage return after printing the window title
Terminals can get confused by all the non-printed characters about the line position. Closes #2453.
Diffstat (limited to 'src/reader.cpp')
-rw-r--r--src/reader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/reader.cpp b/src/reader.cpp
index 63b70283..9b90a70f 100644
--- a/src/reader.cpp
+++ b/src/reader.cpp
@@ -952,6 +952,8 @@ void reader_write_title(const wcstring &cmd)
}
proc_pop_interactive();
set_color(rgb_color_t::reset(), rgb_color_t::reset());
+ // Put the cursor back at the beginning of the line #2453
+ writestr(L"\r");
}
/**