From 546ba789888cbbe8ec41862eed463784abe48b5c Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 2 Feb 2014 12:24:45 -0600 Subject: [PATCH] Fix bugs in EMACS command line editor, primarily errors in the VT100 commands --- include/nuttx/vt100.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 */