mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
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:
parent
226cdc6a28
commit
13479fbc2a
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue