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.
This commit is contained in:
David Adam 2015-10-16 11:53:51 +08:00
parent 226cdc6a28
commit 13479fbc2a

View file

@ -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");
}
/**