Ignore:
Timestamp:
Mar 24, 2009, 1:58:01 AM (12 years ago)
Author:
Sam Hocevar
Message:

Apparently \033 is more common than \x1b for ESC. Use the former in our
code for clarity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaserver.c

    r2821 r3412  
    5656    "\xff\x1f\xfa____" /* SB NAWS */ \
    5757    "\xff\xf0"         /* SE */  \
    58     "\x1b]2;caca for the network\x07" /* Change window title */ \
    59     "\x1b[H\x1b[J" /* Clear screen */
    60     /*"\x1b[?25l"*/ /* Hide cursor */
     58    "\033]2;caca for the network\x07" /* Change window title */ \
     59    "\033[H\033[J" /* Clear screen */
     60    /*"\033[?25l"*/ /* Hide cursor */
    6161
    6262#define ANSI_PREFIX \
    63     "\x1b[1;1H" /* move(0,0) */ \
    64     "\x1b[1;1H" /* move(0,0) again */
     63    "\033[1;1H" /* move(0,0) */ \
     64    "\033[1;1H" /* move(0,0) again */
    6565
    6666#define ANSI_RESET \
    6767    "    " /* Garbage */ \
    68     "\x1b[?1049h" /* Clear screen */ \
    69     "\x1b[?1049h" /* Clear screen again */
     68    "\033[?1049h" /* Clear screen */ \
     69    "\033[?1049h" /* Clear screen again */
    7070
    7171static char const telnet_commands[16][5] =
Note: See TracChangeset for help on using the changeset viewer.