build: replace the non-standard backslash escape "\e" with "\x1B"
Older compilers do not understand "\e". Also, it's not in the standard (see http://open-std.org/JTC1/SC22/WG14/www/docs/n1570.pdf, §6.4.4.4). This addresses https://savannah.gnu.org/bugs/?58799. Reported-by: Henry Bent <henry.r.bent@gmail.com>master
parent
fd10c0eadd
commit
e59a0f5e77
|
@ -226,7 +226,7 @@ void restore_terminal(void)
|
|||
curs_set(1);
|
||||
endwin();
|
||||
#ifndef NANO_TINY
|
||||
printf("\e[?2004l");
|
||||
printf("\x1B[?2004l");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
tcsetattr(0, TCSANOW, &original_state);
|
||||
|
@ -1223,7 +1223,7 @@ void terminal_init(void)
|
|||
|
||||
#ifndef NANO_TINY
|
||||
/* Tell the terminal to enable bracketed pastes. */
|
||||
printf("\e[?2004h");
|
||||
printf("\x1B[?2004h");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1499,7 +1499,7 @@ char *get_verbatim_kbinput(WINDOW *win, size_t *count)
|
|||
|
||||
#ifndef NANO_TINY
|
||||
/* Turn bracketed-paste mode off. */
|
||||
printf("\e[?2004l");
|
||||
printf("\x1B[?2004l");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
|
@ -1520,7 +1520,7 @@ char *get_verbatim_kbinput(WINDOW *win, size_t *count)
|
|||
|
||||
#ifndef NANO_TINY
|
||||
/* Turn bracketed-paste mode back on. */
|
||||
printf("\e[?2004h");
|
||||
printf("\x1B[?2004h");
|
||||
fflush(stdout);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue