mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Use ESC_STR macro instead of hardcoded "\033".
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b982f70d4b
commit
6c5a679b85
@ -2104,7 +2104,7 @@ numeric_keypad_mode (void)
|
||||
{
|
||||
if (mc_global.tty.console_flag || mc_global.tty.xterm_flag)
|
||||
{
|
||||
fputs ("\033>", stdout);
|
||||
fputs (ESC_STR ">", stdout);
|
||||
fflush (stdout);
|
||||
}
|
||||
}
|
||||
@ -2116,7 +2116,7 @@ application_keypad_mode (void)
|
||||
{
|
||||
if (mc_global.tty.console_flag || mc_global.tty.xterm_flag)
|
||||
{
|
||||
fputs ("\033=", stdout);
|
||||
fputs (ESC_STR "=", stdout);
|
||||
fflush (stdout);
|
||||
}
|
||||
}
|
||||
|
@ -189,7 +189,7 @@ slang_reset_softkeys (void)
|
||||
send = (char *) SLtt_tgetstr (tmp);
|
||||
if (send != NULL)
|
||||
{
|
||||
g_snprintf (tmp, sizeof (tmp), "\033&f%dk%dd%dL%s%s", key,
|
||||
g_snprintf (tmp, sizeof (tmp), ESC_STR "&f%dk%dd%dL%s%s", key,
|
||||
(int) (sizeof (display) - 1), (int) strlen (send), display, send);
|
||||
SLtt_write_string (tmp);
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ show_rxvt_contents (int starty, unsigned char y1, unsigned char y2)
|
||||
tty_lowlevel_getch ();
|
||||
|
||||
/* my own wierd protocol base 26 - paul */
|
||||
printf ("\033CL%c%c%c%c\n", (y1 / 26) + 'A', (y1 % 26) + 'A', (y2 / 26) + 'A', (y2 % 26) + 'A');
|
||||
printf (ESC_STR "CL%c%c%c%c\n", (y1 / 26) + 'A', (y1 % 26) + 'A', (y2 / 26) + 'A', (y2 % 26) + 'A');
|
||||
|
||||
bytes = (y2 - y1) * (COLS + 1) + 1; /* *should* be the number of bytes read */
|
||||
j = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user