line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Tel::Macro; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
28
|
use strict; |
|
6
|
|
|
|
|
71
|
|
|
6
|
|
|
|
|
155
|
|
4
|
6
|
|
|
6
|
|
29
|
use warnings; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
832
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
require Exporter; |
7
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
8
|
|
|
|
|
|
|
our @EXPORT = qw( handle_backspace handle_ctrl_z ); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head2 handle_backspace |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
Handle backspace for routers that use ^H |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub handle_backspace { |
17
|
0
|
|
|
0
|
1
|
|
${$_[0]}->send("\b"); |
|
0
|
|
|
|
|
|
|
18
|
0
|
|
|
|
|
|
return 1; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head2 handle_ctrl_z |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Handle ctrl_z for non-cisco boxes |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub handle_ctrl_z { |
28
|
0
|
|
|
0
|
1
|
|
${$_[0]}->send("exit\r"); |
|
0
|
|
|
|
|
|
|
29
|
0
|
|
|
|
|
|
return 1; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |