mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 02:41:15 -03:00
Replace \e with \x1B, as the former is a gcc extension
While supported by gcc and clang, \e is a gcc-specific extension and not formally defined in the C or C++ standards. See [0] for a list of valid escapes. [0]: https://stackoverflow.com/a/10220539/17027
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
// \a = alert (bell)
|
||||
// \b = backspace
|
||||
// \c = produce no further output
|
||||
// \e = escape
|
||||
// \x1B = escape
|
||||
// \f = form feed
|
||||
// \n = new line
|
||||
// \r = carriage return
|
||||
@@ -317,7 +317,7 @@ void builtin_printf_state_t::print_esc_char(wchar_t c) {
|
||||
break;
|
||||
}
|
||||
case L'e': { // escape
|
||||
this->append_output(L'\e');
|
||||
this->append_output(L'\x1B');
|
||||
break;
|
||||
}
|
||||
case L'f': { // form feed
|
||||
|
||||
Reference in New Issue
Block a user