#include "vt100.h"
-static const prog_char cmd0[] = vt100_up_arr;
-static const prog_char cmd1[] = vt100_down_arr;
-static const prog_char cmd2[] = vt100_right_arr;
-static const prog_char cmd3[] = vt100_left_arr;
-static const prog_char cmd4[] = "\177";
-static const prog_char cmd5[] = "\n";
-static const prog_char cmd6[] = "\001";
-static const prog_char cmd7[] = "\005";
-static const prog_char cmd8[] = "\013";
-static const prog_char cmd9[] = "\031";
-static const prog_char cmd10[] = "\003";
-static const prog_char cmd11[] = "\006";
-static const prog_char cmd12[] = "\002";
-static const prog_char cmd13[] = vt100_suppr;
-static const prog_char cmd14[] = vt100_tab;
-static const prog_char cmd15[] = "\004";
-static const prog_char cmd16[] = "\014";
-static const prog_char cmd17[] = "\r";
-static const prog_char cmd18[] = "\033\177";
-static const prog_char cmd19[] = vt100_word_left;
-static const prog_char cmd20[] = vt100_word_right;
-static const prog_char cmd21[] = "?";
-
-const prog_char * vt100_commands[] PROGMEM = {
+static const char PROGMEM cmd0[] = vt100_up_arr;
+static const char PROGMEM cmd1[] = vt100_down_arr;
+static const char PROGMEM cmd2[] = vt100_right_arr;
+static const char PROGMEM cmd3[] = vt100_left_arr;
+static const char PROGMEM cmd4[] = "\177";
+static const char PROGMEM cmd5[] = "\n";
+static const char PROGMEM cmd6[] = "\001";
+static const char PROGMEM cmd7[] = "\005";
+static const char PROGMEM cmd8[] = "\013";
+static const char PROGMEM cmd9[] = "\031";
+static const char PROGMEM cmd10[] = "\003";
+static const char PROGMEM cmd11[] = "\006";
+static const char PROGMEM cmd12[] = "\002";
+static const char PROGMEM cmd13[] = vt100_suppr;
+static const char PROGMEM cmd14[] = vt100_tab;
+static const char PROGMEM cmd15[] = "\004";
+static const char PROGMEM cmd16[] = "\014";
+static const char PROGMEM cmd17[] = "\r";
+static const char PROGMEM cmd18[] = "\033\177";
+static const char PROGMEM cmd19[] = vt100_word_left;
+static const char PROGMEM cmd20[] = vt100_word_right;
+static const char PROGMEM cmd21[] = "?";
+
+const char * const PROGMEM vt100_commands[] = {
cmd0, cmd1, cmd2, cmd3, cmd4, cmd5, cmd6, cmd7,
cmd8, cmd9, cmd10, cmd11, cmd12, cmd13, cmd14,
cmd15, cmd16, cmd17, cmd18, cmd19, cmd20,
static int8_t
match_command(char * buf, uint8_t size)
{
- const prog_char * cmd;
+ const char *cmd;
uint8_t i = 0;
- for (i=0 ; i<sizeof(vt100_commands)/sizeof(const prog_char *) ; i++) {
+ for (i=0 ; i<sizeof(vt100_commands)/sizeof(const char *) ; i++) {
#ifdef HOST_VERSION
cmd = *(vt100_commands + i);
#else
- cmd = (const prog_char *) pgm_read_word (vt100_commands + i);
+ cmd = (const char *) pgm_read_word (vt100_commands + i);
#endif
if (size == strlen_P(cmd) &&