X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=modules%2Fihm%2Fvt100%2Fvt100.c;h=2bdc47a676e954dfd29dcecc60fd61278cbd63a3;hp=f006119debd2061d1c557820c6d463dceaaf00b3;hb=HEAD;hpb=ccc6954bb046671b9e28c5806db5121c1eef49c0 diff --git a/modules/ihm/vt100/vt100.c b/modules/ihm/vt100/vt100.c index f006119..2bdc47a 100644 --- a/modules/ihm/vt100/vt100.c +++ b/modules/ihm/vt100/vt100.c @@ -31,30 +31,30 @@ #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, @@ -71,14 +71,14 @@ vt100_init(struct vt100 * vt) 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