Changeset 87822ce in mainline for uspace/lib/ui/src/ui.c
- Timestamp:
- 2021-03-04T19:14:30Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d6c4d40
- Parents:
- 760a392
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/ui.c
r760a392 r87822ce 39 39 #include <fibril.h> 40 40 #include <io/console.h> 41 #include <stdbool.h> 41 42 #include <stdlib.h> 42 43 #include <str.h> … … 220 221 void ui_run(ui_t *ui) 221 222 { 222 bool have_event;223 223 cons_event_t event; 224 224 usec_t timeout; 225 errno_t rc; 225 226 226 227 /* Only return command prompt if we are running in a separate window */ … … 231 232 if (ui->console != NULL) { 232 233 timeout = 100000; 233 have_event= console_get_event_timeout(ui->console,234 rc = console_get_event_timeout(ui->console, 234 235 &event, &timeout); 235 if (have_event) 236 237 /* Do we actually have an event? */ 238 if (rc == EOK) { 236 239 ui_cons_event_process(ui, &event); 240 } else if (rc != ETIMEOUT) { 241 /* Error, quit */ 242 break; 243 } 237 244 } else { 238 245 fibril_usleep(100000);
Note:
See TracChangeset
for help on using the changeset viewer.