input: Add BB_ prefix to KEY_ defines
Our KEY_ defines conflict with the standard Linux KEY_ defines, so add a BB_ prefix to them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
9bdef9e7f2
commit
7e66707c76
|
@ -56,11 +56,11 @@ static struct i2c_board_info i2c_devices[] = {
|
||||||
};
|
};
|
||||||
#if defined(CONFIG_KEYBOARD_TWL6030) && defined(CONFIG_KEYBOARD_GPIO)
|
#if defined(CONFIG_KEYBOARD_TWL6030) && defined(CONFIG_KEYBOARD_GPIO)
|
||||||
static struct twl6030_pwrbtn_platform_data pwrbtn_data = {
|
static struct twl6030_pwrbtn_platform_data pwrbtn_data = {
|
||||||
.code = KEY_ENTER
|
.code = BB_KEY_ENTER
|
||||||
};
|
};
|
||||||
static struct gpio_keys_button keys[] = {
|
static struct gpio_keys_button keys[] = {
|
||||||
{ .code = KEY_UP , .gpio = 43, .active_low = 1 },
|
{ .code = BB_KEY_UP , .gpio = 43, .active_low = 1 },
|
||||||
{ .code = KEY_DOWN, .gpio = 44, .active_low = 1 },
|
{ .code = BB_KEY_DOWN, .gpio = 44, .active_low = 1 },
|
||||||
};
|
};
|
||||||
static struct gpio_keys_platform_data gk_data = {
|
static struct gpio_keys_platform_data gk_data = {
|
||||||
.buttons = keys,
|
.buttons = keys,
|
||||||
|
|
|
@ -234,13 +234,13 @@ static void ek_add_device_lcdc(void) {}
|
||||||
#ifdef CONFIG_KEYBOARD_GPIO
|
#ifdef CONFIG_KEYBOARD_GPIO
|
||||||
struct gpio_keys_button keys[] = {
|
struct gpio_keys_button keys[] = {
|
||||||
{
|
{
|
||||||
.code = KEY_UP,
|
.code = BB_KEY_UP,
|
||||||
.gpio = AT91_PIN_PA26,
|
.gpio = AT91_PIN_PA26,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_DOWN,
|
.code = BB_KEY_DOWN,
|
||||||
.gpio = AT91_PIN_PA25,
|
.gpio = AT91_PIN_PA25,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_ENTER,
|
.code = BB_KEY_ENTER,
|
||||||
.gpio = AT91_PIN_PA24,
|
.gpio = AT91_PIN_PA24,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -182,25 +182,25 @@ static void ek_device_add_leds(void) {}
|
||||||
#ifdef CONFIG_KEYBOARD_GPIO
|
#ifdef CONFIG_KEYBOARD_GPIO
|
||||||
struct gpio_keys_button keys[] = {
|
struct gpio_keys_button keys[] = {
|
||||||
{
|
{
|
||||||
.code = KEY_HOME,
|
.code = BB_KEY_HOME,
|
||||||
.gpio = AT91_PIN_PB6,
|
.gpio = AT91_PIN_PB6,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_RETURN,
|
.code = BB_KEY_RETURN,
|
||||||
.gpio = AT91_PIN_PB7,
|
.gpio = AT91_PIN_PB7,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_LEFT,
|
.code = BB_KEY_LEFT,
|
||||||
.gpio = AT91_PIN_PB14,
|
.gpio = AT91_PIN_PB14,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_RIGHT,
|
.code = BB_KEY_RIGHT,
|
||||||
.gpio = AT91_PIN_PB15,
|
.gpio = AT91_PIN_PB15,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_UP,
|
.code = BB_KEY_UP,
|
||||||
.gpio = AT91_PIN_PB16,
|
.gpio = AT91_PIN_PB16,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_DOWN,
|
.code = BB_KEY_DOWN,
|
||||||
.gpio = AT91_PIN_PB17,
|
.gpio = AT91_PIN_PB17,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_RETURN,
|
.code = BB_KEY_RETURN,
|
||||||
.gpio = AT91_PIN_PB18,
|
.gpio = AT91_PIN_PB18,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -110,7 +110,7 @@ static void ek_add_device_mci(void) {}
|
||||||
|
|
||||||
struct qt1070_platform_data qt1070_pdata = {
|
struct qt1070_platform_data qt1070_pdata = {
|
||||||
.irq_pin = AT91_PIN_PB19,
|
.irq_pin = AT91_PIN_PB19,
|
||||||
.code = { KEY_ENTER, KEY_ENTER, KEY_UP, KEY_DOWN, },
|
.code = { BB_KEY_ENTER, BB_KEY_ENTER, BB_KEY_UP, BB_KEY_DOWN, },
|
||||||
.nb_code = 4,
|
.nb_code = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -339,16 +339,16 @@ struct gpio_led dab_mmx_leds[] = {
|
||||||
#ifdef CONFIG_KEYBOARD_GPIO
|
#ifdef CONFIG_KEYBOARD_GPIO
|
||||||
struct gpio_keys_button keys[] = {
|
struct gpio_keys_button keys[] = {
|
||||||
{
|
{
|
||||||
.code = KEY_UP,
|
.code = BB_KEY_UP,
|
||||||
.gpio = AT91_PIN_PB25,
|
.gpio = AT91_PIN_PB25,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_HOME,
|
.code = BB_KEY_HOME,
|
||||||
.gpio = AT91_PIN_PB13,
|
.gpio = AT91_PIN_PB13,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_DOWN,
|
.code = BB_KEY_DOWN,
|
||||||
.gpio = AT91_PIN_PA26,
|
.gpio = AT91_PIN_PA26,
|
||||||
}, {
|
}, {
|
||||||
.code = KEY_ENTER,
|
.code = BB_KEY_ENTER,
|
||||||
.gpio = AT91_PIN_PC9,
|
.gpio = AT91_PIN_PC9,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -456,7 +456,7 @@ static int do_edit(int argc, char *argv[])
|
||||||
|
|
||||||
c = read_key();
|
c = read_key();
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case KEY_UP:
|
case BB_KEY_UP:
|
||||||
if (!curline->prev)
|
if (!curline->prev)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -464,7 +464,7 @@ static int do_edit(int argc, char *argv[])
|
||||||
cursy--;
|
cursy--;
|
||||||
textx = setpos(curline->data, linepos);
|
textx = setpos(curline->data, linepos);
|
||||||
break;
|
break;
|
||||||
case KEY_DOWN:
|
case BB_KEY_DOWN:
|
||||||
if (!curline->next)
|
if (!curline->next)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -472,19 +472,19 @@ static int do_edit(int argc, char *argv[])
|
||||||
cursy++;
|
cursy++;
|
||||||
textx = setpos(curline->data, linepos);
|
textx = setpos(curline->data, linepos);
|
||||||
break;
|
break;
|
||||||
case KEY_RIGHT:
|
case BB_KEY_RIGHT:
|
||||||
textx++;
|
textx++;
|
||||||
break;
|
break;
|
||||||
case KEY_LEFT:
|
case BB_KEY_LEFT:
|
||||||
textx--;
|
textx--;
|
||||||
break;
|
break;
|
||||||
case KEY_HOME:
|
case BB_KEY_HOME:
|
||||||
textx = 0;
|
textx = 0;
|
||||||
break;
|
break;
|
||||||
case KEY_END:
|
case BB_KEY_END:
|
||||||
textx = curlen;
|
textx = curlen;
|
||||||
break;
|
break;
|
||||||
case KEY_PAGEUP:
|
case BB_KEY_PAGEUP:
|
||||||
for (i = 0; i < screenheight - 1; i++) {
|
for (i = 0; i < screenheight - 1; i++) {
|
||||||
if (!curline->prev)
|
if (!curline->prev)
|
||||||
break;
|
break;
|
||||||
|
@ -493,7 +493,7 @@ static int do_edit(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
textx = setpos(curline->data, linepos);
|
textx = setpos(curline->data, linepos);
|
||||||
break;
|
break;
|
||||||
case KEY_PAGEDOWN:
|
case BB_KEY_PAGEDOWN:
|
||||||
for (i = 0; i < screenheight - 1; i++) {
|
for (i = 0; i < screenheight - 1; i++) {
|
||||||
if (!curline->next)
|
if (!curline->next)
|
||||||
break;
|
break;
|
||||||
|
@ -502,7 +502,7 @@ static int do_edit(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
textx = setpos(curline->data, linepos);
|
textx = setpos(curline->data, linepos);
|
||||||
break;
|
break;
|
||||||
case KEY_DEL:
|
case BB_KEY_DEL:
|
||||||
if (textx == curlen) {
|
if (textx == curlen) {
|
||||||
if (curline->next)
|
if (curline->next)
|
||||||
merge_line(curline);
|
merge_line(curline);
|
||||||
|
|
|
@ -303,7 +303,7 @@ int menu_show(struct menu *m)
|
||||||
int repaint = 0;
|
int repaint = 0;
|
||||||
|
|
||||||
if (m->auto_select >= 0)
|
if (m->auto_select >= 0)
|
||||||
ch = KEY_RETURN;
|
ch = BB_KEY_RETURN;
|
||||||
else
|
else
|
||||||
ch = read_key();
|
ch = read_key();
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ int menu_show(struct menu *m)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case KEY_UP:
|
case BB_KEY_UP:
|
||||||
m->selected = list_entry(m->selected->list.prev, struct menu_entry,
|
m->selected = list_entry(m->selected->list.prev, struct menu_entry,
|
||||||
list);
|
list);
|
||||||
if (&(m->selected->list) == &(m->entries)) {
|
if (&(m->selected->list) == &(m->entries)) {
|
||||||
|
@ -336,7 +336,7 @@ int menu_show(struct menu *m)
|
||||||
}
|
}
|
||||||
repaint = 1;
|
repaint = 1;
|
||||||
break;
|
break;
|
||||||
case KEY_DOWN:
|
case BB_KEY_DOWN:
|
||||||
m->selected = list_entry(m->selected->list.next, struct menu_entry,
|
m->selected = list_entry(m->selected->list.next, struct menu_entry,
|
||||||
list);
|
list);
|
||||||
if (&(m->selected->list) == &(m->entries)) {
|
if (&(m->selected->list) == &(m->entries)) {
|
||||||
|
@ -353,11 +353,11 @@ int menu_show(struct menu *m)
|
||||||
m->selected->action(m, m->selected);
|
m->selected->action(m, m->selected);
|
||||||
repaint = 1;
|
repaint = 1;
|
||||||
break;
|
break;
|
||||||
case KEY_ENTER:
|
case BB_KEY_ENTER:
|
||||||
if (ch_previous == KEY_RETURN)
|
if (ch_previous == BB_KEY_RETURN)
|
||||||
break;
|
break;
|
||||||
case KEY_RETURN:
|
case BB_KEY_RETURN:
|
||||||
if (ch_previous == KEY_ENTER)
|
if (ch_previous == BB_KEY_ENTER)
|
||||||
break;
|
break;
|
||||||
clear();
|
clear();
|
||||||
gotoXY(1,1);
|
gotoXY(1,1);
|
||||||
|
@ -368,11 +368,11 @@ int menu_show(struct menu *m)
|
||||||
else
|
else
|
||||||
print_menu(m);
|
print_menu(m);
|
||||||
break;
|
break;
|
||||||
case KEY_HOME:
|
case BB_KEY_HOME:
|
||||||
m->selected = list_first_entry(&m->entries, struct menu_entry, list);
|
m->selected = list_first_entry(&m->entries, struct menu_entry, list);
|
||||||
repaint = 1;
|
repaint = 1;
|
||||||
break;
|
break;
|
||||||
case KEY_END:
|
case BB_KEY_END:
|
||||||
m->selected = list_last_entry(&m->entries, struct menu_entry, list);
|
m->selected = list_last_entry(&m->entries, struct menu_entry, list);
|
||||||
repaint = 1;
|
repaint = 1;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -65,8 +65,8 @@ int password(unsigned char *passwd, size_t length, int flags, int timeout)
|
||||||
puts("\r\n");
|
puts("\r\n");
|
||||||
return 0;
|
return 0;
|
||||||
case CTL_CH('h'):
|
case CTL_CH('h'):
|
||||||
case KEY_DEL7:
|
case BB_KEY_DEL7:
|
||||||
case KEY_DEL:
|
case BB_KEY_DEL:
|
||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
if (flags & STAR)
|
if (flags & STAR)
|
||||||
puts("\b \b");
|
puts("\b \b");
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
#define QT1070_RESET_TIME 255
|
#define QT1070_RESET_TIME 255
|
||||||
|
|
||||||
static int default_code[QT1070_NB_BUTTONS] = {
|
static int default_code[QT1070_NB_BUTTONS] = {
|
||||||
KEY_ENTER, KEY_HOME, KEY_UP, KEY_DOWN,
|
BB_KEY_ENTER, BB_KEY_HOME, BB_KEY_UP, BB_KEY_DOWN,
|
||||||
KEY_RIGHT, KEY_LEFT, KEY_CLEAR_SCREEN };
|
BB_KEY_RIGHT, BB_KEY_LEFT, BB_KEY_CLEAR_SCREEN };
|
||||||
|
|
||||||
struct qt1070_data {
|
struct qt1070_data {
|
||||||
int code[QT1070_NB_BUTTONS];
|
int code[QT1070_NB_BUTTONS];
|
||||||
|
|
|
@ -4,25 +4,25 @@
|
||||||
#define CTL_CH(c) ((c) - 'a' + 1)
|
#define CTL_CH(c) ((c) - 'a' + 1)
|
||||||
|
|
||||||
/* Ascii keys */
|
/* Ascii keys */
|
||||||
#define KEY_ENTER '\n'
|
#define BB_KEY_ENTER '\n'
|
||||||
#define KEY_RETURN '\r'
|
#define BB_KEY_RETURN '\r'
|
||||||
|
|
||||||
/* Misc. non-Ascii keys */
|
/* Misc. non-Ascii keys */
|
||||||
#define KEY_UP CTL_CH('p') /* cursor key Up */
|
#define BB_KEY_UP CTL_CH('p') /* cursor key Up */
|
||||||
#define KEY_DOWN CTL_CH('n') /* cursor key Down */
|
#define BB_KEY_DOWN CTL_CH('n') /* cursor key Down */
|
||||||
#define KEY_RIGHT CTL_CH('f') /* Cursor Key Right */
|
#define BB_KEY_RIGHT CTL_CH('f') /* Cursor Key Right */
|
||||||
#define KEY_LEFT CTL_CH('b') /* cursor key Left */
|
#define BB_KEY_LEFT CTL_CH('b') /* cursor key Left */
|
||||||
#define KEY_HOME CTL_CH('a') /* Cursor Key Home */
|
#define BB_KEY_HOME CTL_CH('a') /* Cursor Key Home */
|
||||||
#define KEY_ERASE_TO_EOL CTL_CH('k')
|
#define BB_KEY_ERASE_TO_EOL CTL_CH('k')
|
||||||
#define KEY_REFRESH_TO_EOL CTL_CH('e')
|
#define BB_KEY_REFRESH_TO_EOL CTL_CH('e')
|
||||||
#define KEY_ERASE_LINE CTL_CH('x')
|
#define BB_KEY_ERASE_LINE CTL_CH('x')
|
||||||
#define KEY_INSERT CTL_CH('o')
|
#define BB_KEY_INSERT CTL_CH('o')
|
||||||
#define KEY_CLEAR_SCREEN CTL_CH('l')
|
#define BB_KEY_CLEAR_SCREEN CTL_CH('l')
|
||||||
#define KEY_DEL7 127
|
#define BB_KEY_DEL7 127
|
||||||
#define KEY_END 133 /* Cursor Key End */
|
#define BB_KEY_END 133 /* Cursor Key End */
|
||||||
#define KEY_PAGEUP 135 /* Cursor Key Page Up */
|
#define BB_KEY_PAGEUP 135 /* Cursor Key Page Up */
|
||||||
#define KEY_PAGEDOWN 136 /* Cursor Key Page Down */
|
#define BB_KEY_PAGEDOWN 136 /* Cursor Key Page Down */
|
||||||
#define KEY_DEL 137 /* Cursor Key Del */
|
#define BB_KEY_DEL 137 /* Cursor Key Del */
|
||||||
|
|
||||||
#define ANSI_CLEAR_SCREEN "\e[2J\e[;H"
|
#define ANSI_CLEAR_SCREEN "\e[2J\e[;H"
|
||||||
|
|
||||||
|
|
|
@ -29,24 +29,24 @@ struct esc_cmds {
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct esc_cmds esccmds[] = {
|
static const struct esc_cmds esccmds[] = {
|
||||||
{"OA", KEY_UP}, // cursor key Up
|
{"OA", BB_KEY_UP}, // cursor key Up
|
||||||
{"OB", KEY_DOWN}, // cursor key Down
|
{"OB", BB_KEY_DOWN}, // cursor key Down
|
||||||
{"OC", KEY_RIGHT}, // Cursor Key Right
|
{"OC", BB_KEY_RIGHT}, // Cursor Key Right
|
||||||
{"OD", KEY_LEFT}, // cursor key Left
|
{"OD", BB_KEY_LEFT}, // cursor key Left
|
||||||
{"OH", KEY_HOME}, // Cursor Key Home
|
{"OH", BB_KEY_HOME}, // Cursor Key Home
|
||||||
{"OF", KEY_END}, // Cursor Key End
|
{"OF", BB_KEY_END}, // Cursor Key End
|
||||||
{"[A", KEY_UP}, // cursor key Up
|
{"[A", BB_KEY_UP}, // cursor key Up
|
||||||
{"[B", KEY_DOWN}, // cursor key Down
|
{"[B", BB_KEY_DOWN}, // cursor key Down
|
||||||
{"[C", KEY_RIGHT}, // Cursor Key Right
|
{"[C", BB_KEY_RIGHT}, // Cursor Key Right
|
||||||
{"[D", KEY_LEFT}, // cursor key Left
|
{"[D", BB_KEY_LEFT}, // cursor key Left
|
||||||
{"[H", KEY_HOME}, // Cursor Key Home
|
{"[H", BB_KEY_HOME}, // Cursor Key Home
|
||||||
{"[F", KEY_END}, // Cursor Key End
|
{"[F", BB_KEY_END}, // Cursor Key End
|
||||||
{"[1~", KEY_HOME}, // Cursor Key Home
|
{"[1~", BB_KEY_HOME}, // Cursor Key Home
|
||||||
{"[2~", KEY_INSERT}, // Cursor Key Insert
|
{"[2~", BB_KEY_INSERT}, // Cursor Key Insert
|
||||||
{"[3~", KEY_DEL}, // Cursor Key Delete
|
{"[3~", BB_KEY_DEL}, // Cursor Key Delete
|
||||||
{"[4~", KEY_END}, // Cursor Key End
|
{"[4~", BB_KEY_END}, // Cursor Key End
|
||||||
{"[5~", KEY_PAGEUP}, // Cursor Key Page Up
|
{"[5~", BB_KEY_PAGEUP}, // Cursor Key Page Up
|
||||||
{"[6~", KEY_PAGEDOWN},// Cursor Key Page Down
|
{"[6~", BB_KEY_PAGEDOWN},// Cursor Key Page Down
|
||||||
};
|
};
|
||||||
|
|
||||||
int read_key(void)
|
int read_key(void)
|
||||||
|
|
|
@ -233,19 +233,19 @@ int readline(const char *prompt, char *buf, int len)
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case KEY_HOME:
|
case BB_KEY_HOME:
|
||||||
BEGINNING_OF_LINE();
|
BEGINNING_OF_LINE();
|
||||||
break;
|
break;
|
||||||
case CTL_CH('c'): /* ^C - break */
|
case CTL_CH('c'): /* ^C - break */
|
||||||
*buf = 0; /* discard input */
|
*buf = 0; /* discard input */
|
||||||
return -1;
|
return -1;
|
||||||
case KEY_RIGHT:
|
case BB_KEY_RIGHT:
|
||||||
if (num < eol_num) {
|
if (num < eol_num) {
|
||||||
getcmd_putch(buf[num]);
|
getcmd_putch(buf[num]);
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KEY_LEFT:
|
case BB_KEY_LEFT:
|
||||||
if (num) {
|
if (num) {
|
||||||
getcmd_putch(CTL_BACKSPACE);
|
getcmd_putch(CTL_BACKSPACE);
|
||||||
num--;
|
num--;
|
||||||
|
@ -266,28 +266,28 @@ int readline(const char *prompt, char *buf, int len)
|
||||||
eol_num--;
|
eol_num--;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KEY_ERASE_TO_EOL:
|
case BB_KEY_ERASE_TO_EOL:
|
||||||
ERASE_TO_EOL();
|
ERASE_TO_EOL();
|
||||||
break;
|
break;
|
||||||
case KEY_REFRESH_TO_EOL:
|
case BB_KEY_REFRESH_TO_EOL:
|
||||||
case KEY_END:
|
case BB_KEY_END:
|
||||||
REFRESH_TO_EOL();
|
REFRESH_TO_EOL();
|
||||||
break;
|
break;
|
||||||
case KEY_INSERT:
|
case BB_KEY_INSERT:
|
||||||
insert = !insert;
|
insert = !insert;
|
||||||
break;
|
break;
|
||||||
case KEY_ERASE_LINE:
|
case BB_KEY_ERASE_LINE:
|
||||||
BEGINNING_OF_LINE();
|
BEGINNING_OF_LINE();
|
||||||
ERASE_TO_EOL();
|
ERASE_TO_EOL();
|
||||||
break;
|
break;
|
||||||
case DEL:
|
case DEL:
|
||||||
case KEY_DEL7:
|
case BB_KEY_DEL7:
|
||||||
case 8:
|
case 8:
|
||||||
if (num) {
|
if (num) {
|
||||||
DO_BACKSPACE();
|
DO_BACKSPACE();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KEY_DEL:
|
case BB_KEY_DEL:
|
||||||
if (num < eol_num) {
|
if (num < eol_num) {
|
||||||
wlen = eol_num - num;
|
wlen = eol_num - num;
|
||||||
memmove(buf + num, buf + num + 1, wlen);
|
memmove(buf + num, buf + num + 1, wlen);
|
||||||
|
@ -299,12 +299,12 @@ int readline(const char *prompt, char *buf, int len)
|
||||||
eol_num--;
|
eol_num--;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KEY_UP:
|
case BB_KEY_UP:
|
||||||
case KEY_DOWN:
|
case BB_KEY_DOWN:
|
||||||
{
|
{
|
||||||
char * hline;
|
char * hline;
|
||||||
|
|
||||||
if (ichar == KEY_UP)
|
if (ichar == BB_KEY_UP)
|
||||||
hline = hist_prev();
|
hline = hist_prev();
|
||||||
else
|
else
|
||||||
hline = hist_next();
|
hline = hist_next();
|
||||||
|
|
Loading…
Reference in New Issue