ctk-curses: uncomment nonl() call and fix return key handling

This commit is contained in:
François Revol 2013-03-30 23:00:44 +01:00
parent f63aada8b6
commit 065c25cfc5

View file

@ -124,7 +124,8 @@ console_init(void)
/* don't echo typed characters */
noecho();
/*nonl(); */
/* disable return -> newline translation */
nonl();
/* hide text cursor, CTK draws its own */
curs_set(0);
@ -411,6 +412,7 @@ console_readkey(int k)
case KEY_F(10):
key = CTK_CONF_MENU_KEY;
break;
case '\r':
case KEY_ENTER:
key = CH_ENTER;
break;