diff --git a/include/nuttx/vt100.h b/include/nuttx/vt100.h index b74b9b7a2a..132d6457f8 100644 --- a/include/nuttx/vt100.h +++ b/include/nuttx/vt100.h @@ -142,12 +142,12 @@ #define VT100_CLEARBOS {ASCII_ESC, '[', '1', 'J'} /* Clear screen from cursor up */ #define VT100_CLEARSCREEN {ASCII_ESC, '[', '2', 'J'} /* Clear entire screen */ -#define VT100_DEVSTAT {ASCII_ESC, '5', 'n'} /* Device status report */ -#define VT100_TERMOK {ASCII_ESC, '0', 'n'} /* Response: terminal is OK */ -#define VT100_TERMNOK {ASCII_ESC, '3', 'n'} /* Response: terminal is not OK */ +#define VT100_DEVSTAT {ASCII_ESC, '[', '5', 'n'} /* Device status report */ +#define VT100_TERMOK {ASCII_ESC, '[', '0', 'n'} /* Response: terminal is OK */ +#define VT100_TERMNOK {ASCII_ESC, '[', '3', 'n'} /* Response: terminal is not OK */ -#define VT100_GETCURSOR {ASCII_ESC, '6', 'n'} /* Get cursor position */ -#define VT100_CURSORPOSAT {ASCII_ESC, (v), ';', (h), 'R'} /* Response: cursor is at v,h */ +#define VT100_GETCURSOR {ASCII_ESC, '[', '6', 'n'} /* Get cursor position */ +#define VT100_CURSORPOSAT {ASCII_ESC, '[', (v), ';', (h), 'R'} /* Response: cursor is at v,h */ #define VT100_IDENT {ASCII_ESC, '[', 'c'} /* Identify what terminal type */ #define VT100_IDENT_ {ASCII_ESC, '[', '0', 'c'} /* Identify what terminal type */