1 | #! perl | ||
---|---|---|---|
2 | |||
1 | sub on_keyboard_command { | 3 | sub on_keyboard_command { |
2 | my ($term, $cmd) = @_; | 4 | my ($term, $cmd) = @_; |
3 | 5 | ||
4 | $cmd eq "selection:rot13" | 6 | $cmd eq "selection:rot13" |
5 | and $term->selection (map { y/A-Za-z/N-ZA-Mn-za-m/; $_ } $term->selection); | 7 | and $term->selection (map { y/A-Za-z/N-ZA-Mn-za-m/; $_ } $term->selection); |
6 | 8 | ||
7 | () | 9 | () |
8 | } | 10 | } |
11 | |||
12 | sub on_sel_extend { | ||
13 | warn "hiya\n";#d# | ||
14 | () | ||
15 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |