diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-10-16 11:53:51 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-10-16 11:53:51 +0800 |
commit | 13479fbc2a130d97caeb66f7f56fb89c6be8c489 (patch) | |
tree | 672c2b01e8768320b5b78dbff6ce3c88956782a7 /src | |
parent | 226cdc6a28b13189d541f7b11bcfdaa1ce1fc82b (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')
-rw-r--r-- | src/reader.cpp | 2 |
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"); } /** |