Use ESC_STR macro instead of hardcoded "\033".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2011-08-26 11:27:41 +04:00 committed by Slava Zanko
parent b982f70d4b
commit 6c5a679b85
3 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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);
}

View File

@ -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;