mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03: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:
@@ -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");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user