Changeset 87822ce in mainline for uspace/app/bdsh
- Timestamp:
- 2021-03-04T19:14:30Z (3 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d6c4d40
- Parents:
- 760a392
- Location:
- uspace/app/bdsh/cmds/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
r760a392 r87822ce 122 122 cons_event_t ev; 123 123 kbd_event_t *kev; 124 errno_t rc; 124 125 125 126 while (true) { 126 if (!console_get_event(console, &ev)) { 127 rc = console_get_event(console, &ev); 128 if (rc != EOK) 127 129 return; 128 }129 130 if (ev.type == CEV_KEY && ev.ev.key.type == KEY_PRESS) { 130 131 kev = &ev.ev.key; -
uspace/app/bdsh/cmds/modules/cp/cp.c
r760a392 r87822ce 146 146 { 147 147 va_list args; 148 errno_t rc; 148 149 149 150 va_start(args, message); … … 154 155 cons_event_t ev; 155 156 console_flush(con); 156 console_get_event(con, &ev); 157 rc = console_get_event(con, &ev); 158 if (rc != EOK) 159 exit(1); 157 160 if (ev.type != CEV_KEY || ev.ev.key.type != KEY_PRESS || 158 161 (ev.ev.key.mods & (KM_CTRL | KM_ALT)) != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.