mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-03 11:30:53 +00:00
ctk-curses: uncomment nonl() call and fix return key handling
This commit is contained in:
parent
f63aada8b6
commit
065c25cfc5
@ -124,7 +124,8 @@ console_init(void)
|
|||||||
|
|
||||||
/* don't echo typed characters */
|
/* don't echo typed characters */
|
||||||
noecho();
|
noecho();
|
||||||
/*nonl(); */
|
/* disable return -> newline translation */
|
||||||
|
nonl();
|
||||||
|
|
||||||
/* hide text cursor, CTK draws its own */
|
/* hide text cursor, CTK draws its own */
|
||||||
curs_set(0);
|
curs_set(0);
|
||||||
@ -411,6 +412,7 @@ console_readkey(int k)
|
|||||||
case KEY_F(10):
|
case KEY_F(10):
|
||||||
key = CTK_CONF_MENU_KEY;
|
key = CTK_CONF_MENU_KEY;
|
||||||
break;
|
break;
|
||||||
|
case '\r':
|
||||||
case KEY_ENTER:
|
case KEY_ENTER:
|
||||||
key = CH_ENTER;
|
key = CH_ENTER;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user