Changes in uspace/app/bdsh/input.c [5db9084:36a75a2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
r5db9084 r36a75a2 50 50 #include "errors.h" 51 51 #include "exec.h" 52 53 extern volatile unsigned int cli_quit;54 52 55 53 /** Text input field. */ … … 109 107 { 110 108 char *str; 111 int rc;112 109 113 110 fflush(stdout); … … 117 114 console_set_style(fphone(stdout), STYLE_NORMAL); 118 115 119 rc = tinput_read(tinput, &str); 120 if (rc == ENOENT) { 121 /* User requested exit */ 122 cli_quit = 1; 123 putchar('\n'); 124 return; 125 } 126 127 if (rc != EOK) { 128 /* Error in communication with console */ 129 return; 130 } 116 str = tinput_read(tinput); 131 117 132 118 /* Check for empty input. */
Note:
See TracChangeset
for help on using the changeset viewer.