Changeset cedd33b in mainline for uspace/app/bdsh/input.c
- Timestamp:
- 2009-12-05T17:35:57Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc77bfa
- Parents:
- f1b37d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
rf1b37d6 rcedd33b 90 90 static void tinput_sel_get_bounds(tinput_t *ti, int *sa, int *sb); 91 91 static bool tinput_sel_active(tinput_t *ti); 92 static void tinput_sel_all(tinput_t *ti); 92 93 static void tinput_sel_delete(tinput_t *ti); 93 94 static void tinput_key_ctrl(tinput_t *ti, console_event_t *ev); … … 255 256 size_t off; 256 257 257 ilen = min( str_length(str), INPUT_MAX - ti->nc);258 ilen = min((ssize_t) str_length(str), INPUT_MAX - ti->nc); 258 259 if (ilen == 0) 259 260 return; … … 477 478 } 478 479 480 static void tinput_sel_all(tinput_t *ti) 481 { 482 ti->sel_start = 0; 483 ti->pos = ti->nc; 484 tinput_display_tail(ti, 0, 0); 485 tinput_position_caret(ti); 486 } 487 479 488 static void tinput_sel_delete(tinput_t *ti) 480 489 { … … 654 663 tinput_seek_vertical(ti, seek_forward, false); 655 664 break; 665 case KC_X: 666 tinput_sel_copy_to_cb(ti); 667 tinput_sel_delete(ti); 668 break; 656 669 case KC_C: 657 670 tinput_sel_copy_to_cb(ti); … … 659 672 case KC_V: 660 673 tinput_paste_from_cb(ti); 674 break; 675 case KC_A: 676 tinput_sel_all(ti); 661 677 break; 662 678 default:
Note:
See TracChangeset
for help on using the changeset viewer.