ctk-curses: uncomment nonl() call and fix return key handling
This commit is contained in:
parent
f63aada8b6
commit
065c25cfc5
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue