| line |
true |
false |
branch |
|
26
|
0 |
2 |
if ($^O eq 'MSWin32') { } |
|
40
|
0 |
1 |
if @_ > 1 |
|
43
|
0 |
1 |
if (defined $opt) |
|
44
|
0 |
0 |
if ref $opt ne "HASH" |
|
48
|
0 |
0 |
if defined $opt->{$key} |
|
94
|
0 |
0 |
if ($self->{'show_context'}) { } |
|
96
|
0 |
0 |
if ($m->{'diff'}) { } |
|
100
|
0 |
0 |
if ($line_w + $m->{'str'}[$i][1] > $term_w) { } |
|
111
|
0 |
0 |
if ($top_pre_line_w <= $term_w) { } |
|
123
|
0 |
0 |
if ($m->{'str_w'} + $self->{'i'}{'max_key_w'} <= $term_w) { } |
|
127
|
0 |
0 |
if (length $self->{'i'}{'prompt'}) |
|
145
|
0 |
0 |
unless ($self->{'show_context'} and $count_chars_after) |
|
154
|
0 |
0 |
if ($line_w + $m->{'str'}[$i][1] > $term_w) |
|
163
|
0 |
0 |
if ($line_w) |
|
175
|
0 |
0 |
if ($empty > 0) { } |
|
181
|
0 |
0 |
if (get_term_height() >= 2) |
|
192
|
0 |
0 |
if (length $self->{'footer'} and $self->{'page'} != 2) |
|
195
|
0 |
0 |
if ($self->{'page'} == 2 and $self->{'clear_screen'} != 1) |
|
204
|
0 |
0 |
unless (@{$self->{'history'};}) |
|
208
|
0 |
0 |
if (&none(sub {
$_ eq $current;
}
, @{$$self{"history"};})) |
|
212
|
0 |
0 |
unless (defined $self->{'i'}{'history_idx'}) |
|
217
|
0 |
0 |
if ($history_up) { } |
|
218
|
0 |
0 |
if ($self->{'i'}{'history_idx'} == 0) { } |
|
226
|
0 |
0 |
if ($self->{'i'}{'history_idx'} >= $#history) { } |
|
241
|
0 |
0 |
unless (length $prompt) |
|
247
|
0 |
0 |
if ($self->{'color'}) |
|
249
|
0 |
0 |
if push @color, $1 |
|
253
|
0 |
0 |
if ($self->{'i'}{'max_key_w'} > $term_w / 3) |
|
257
|
0 |
0 |
if (@color) |
|
267
|
0 |
0 |
if ($self->{'clear_screen'} == 0) { } |
|
|
0 |
0 |
elsif ($self->{'clear_screen'} == 1) { } |
|
273
|
0 |
0 |
if (length $self->{'info'}) { } |
|
277
|
0 |
0 |
if ($self->{'clear_screen'} == 2) { } |
|
295
|
0 |
0 |
if ($self->{'show_context'}) { } |
|
308
|
0 |
0 |
if ($self->{'page'} == 2) { } |
|
324
|
0 |
0 |
if (ref $_[0] eq __PACKAGE__) |
|
335
|
0 |
0 |
unless defined $prompt |
|
336
|
0 |
0 |
if ref $prompt |
|
337
|
0 |
0 |
unless defined $opt |
|
338
|
0 |
0 |
if (not ref $opt) { } |
|
|
0 |
0 |
elsif (ref $opt ne 'HASH') { } |
|
344
|
0 |
0 |
if (%$opt) |
|
348
|
0 |
0 |
if defined $opt->{$key} |
|
352
|
0 |
0 |
if ($^O eq "MSWin32") |
|
353
|
0 |
0 |
$self->{'codepage_mapping'} ? : |
|
368
|
0 |
0 |
if ($self->{'i'}{'beep'}) |
|
373
|
0 |
0 |
if ($tmp_term_w != $term_w) |
|
378
|
0 |
0 |
if ($self->{'show_context'}) |
|
379
|
0 |
0 |
if ($self->{'i'}{'pre_text_row_count'} + 2 + $self->{'i'}{'post_text_row_count'} >= get_term_height()) |
|
387
|
0 |
0 |
if ($up_before) |
|
391
|
0 |
0 |
if ($self->{'i'}{'prev_context_count'} or $self->{'i'}{'context_count'}) |
|
394
|
0 |
0 |
($self->{'i'}{'prev_context_count'} // 0 > $self->{'i'}{'context_count'}) // 0 ? : |
|
402
|
0 |
0 |
if ($self->{'hide_cursor'}) |
|
405
|
0 |
0 |
if (length $self->{'i'}{'pre_text'}) |
|
410
|
0 |
0 |
if (length $self->{'i'}{'post_text'}) |
|
413
|
0 |
0 |
if ($self->{'i'}{'post_text_row_count'}) |
|
419
|
0 |
0 |
unless (defined $char) |
|
427
|
0 |
0 |
if ($char == -1) { } |
|
|
0 |
0 |
elsif ($char == 9) { } |
|
|
0 |
0 |
elsif ($char == 333 or $char == 16) { } |
|
|
0 |
0 |
elsif ($char == 334 or $char == 14) { } |
|
|
0 |
0 |
elsif ($char == 21) { } |
|
|
0 |
0 |
elsif ($char == 11) { } |
|
|
0 |
0 |
elsif ($char == 339 or $char == 6) { } |
|
|
0 |
0 |
elsif ($char == 337 or $char == 2) { } |
|
|
0 |
0 |
elsif ($char == 335 or $char == 5) { } |
|
|
0 |
0 |
elsif ($char == 336 or $char == 1) { } |
|
|
0 |
0 |
elsif ($char == 127 or $char == 8) { } |
|
|
0 |
0 |
elsif ($char == 346 or $char == 4) { } |
|
|
0 |
0 |
elsif ($char == 338 or $char == 19) { } |
|
|
0 |
0 |
elsif ($char == 340 or $char == 20) { } |
|
|
0 |
0 |
elsif ($char == 24) { } |
|
|
0 |
0 |
elsif ($char == 345) { } |
|
|
0 |
0 |
elsif ($char == 10 or $char == 13) { } |
|
429
|
0 |
0 |
if $m->{'pos'} == 0 |
|
430
|
0 |
0 |
if $m->{'pos'} == @{$m->{'str'};} |
|
442
|
0 |
0 |
if (@{$m->{'str'};}) { } |