Changeset 1583793 in mainline
- Timestamp:
- 2018-07-05T21:41:25Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6f025a8
- Parents:
- 0d2bc9d
- git-author:
- Dzejrou <dzejrou@…> (2018-06-26 14:13:12)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:25)
- Location:
- uspace/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/str.c
r0d2bc9d r1583793 1726 1726 *result = unsigned_result; 1727 1727 1728 /* Check whether we are at the end of 1729 the string in strict mode */ 1728 /* 1729 * Check whether we are at the end of 1730 * the string in strict mode 1731 */ 1730 1732 if ((strict) && (*lendptr != 0)) 1731 1733 return EINVAL; -
uspace/lib/gui/terminal.c
r0d2bc9d r1583793 417 417 cons_event_t *event = list_get_instance(link, cons_event_t, link); 418 418 419 /* Ctrl-D inputs end-of-file. */420 if ((event->ev.key.mods & KM_LCTRL) != 0 &&421 event->ev.key.key == KC_D && event->ev.key.type == KEY_PRESS) {422 term->char_remains[term->char_remains_len] = EOF;423 term->char_remains_len = str_size(term->char_remains);424 425 419 /* Accept key presses of printable chars only. */ 426 } elseif (event->type == CEV_KEY && event->ev.key.type == KEY_PRESS &&427 420 if (event->type == CEV_KEY && event->ev.key.type == KEY_PRESS && 421 event->ev.key.c != 0) { 428 422 wchar_t tmp[2] = { 429 423 event->ev.key.c,
Note:
See TracChangeset
for help on using the changeset viewer.