Browse Source

Merge branch 'tui_manage_dev2' into bfgminer

Luke Dashjr 12 years ago
parent
commit
3c17c3cfec
1 changed files with 6 additions and 0 deletions
  1. 6 0
      miner.c

+ 6 - 0
miner.c

@@ -6259,6 +6259,11 @@ refresh:
 			case 'Q': case 'q':
 			case KEY_BREAK: case KEY_BACKSPACE: case KEY_CANCEL: case KEY_CLOSE: case KEY_EXIT:
 			case '\x1b':  // ESC
+			case KEY_ENTER:
+			case '\r':  // Ctrl-M on Windows, with nonl
+#ifdef PADENTER
+			case PADENTER:  // pdcurses, used by Enter key on Windows with nonl
+#endif
 			case '\n':
 				goto out;
 			default:
@@ -8928,6 +8933,7 @@ void enable_curses(void) {
 	leaveok(logwin, true);
 	cbreak();
 	noecho();
+	nonl();
 	curses_active = true;
 	statusy = logstart;
 	unlock_curses();