| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package UI::Various::PoorTerm::Text; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Author, Copyright and License: see end of file |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
|
6
|
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
UI::Various::PoorTerm::Text - concrete implementation of L |
|
8
|
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# This module should never be used directly! |
|
12
|
|
|
|
|
|
|
# It is used indirectly via the following: |
|
13
|
|
|
|
|
|
|
use UI::Various::Text; |
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 ABSTRACT |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
This module is the specific minimal fallback implementation of |
|
18
|
|
|
|
|
|
|
L. It manages and hides everything specific to the last |
|
19
|
|
|
|
|
|
|
resort UI. |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
The documentation of this module is only intended for developers of the |
|
24
|
|
|
|
|
|
|
package itself. |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=cut |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
######################################################################### |
|
29
|
|
|
|
|
|
|
|
|
30
|
5
|
|
|
5
|
|
51
|
use v5.14; |
|
|
5
|
|
|
|
|
14
|
|
|
31
|
5
|
|
|
5
|
|
20
|
use strictures; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
71
|
|
|
32
|
5
|
|
|
5
|
|
697
|
no indirect 'fatal'; |
|
|
5
|
|
|
|
|
12
|
|
|
|
5
|
|
|
|
|
18
|
|
|
33
|
5
|
|
|
5
|
|
230
|
no multidimensional; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
18
|
|
|
34
|
5
|
|
|
5
|
|
167
|
use warnings 'once'; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
262
|
|
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
our $VERSION = '0.24'; |
|
37
|
|
|
|
|
|
|
|
|
38
|
5
|
|
|
5
|
|
33
|
use UI::Various::core; |
|
|
5
|
|
|
|
|
14
|
|
|
|
5
|
|
|
|
|
24
|
|
|
39
|
5
|
|
|
5
|
|
28
|
use UI::Various::Text; |
|
|
5
|
|
|
|
|
8
|
|
|
|
5
|
|
|
|
|
158
|
|
|
40
|
5
|
|
|
5
|
|
1402
|
use UI::Various::PoorTerm::base; |
|
|
5
|
|
|
|
|
11
|
|
|
|
5
|
|
|
|
|
801
|
|
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
require Exporter; |
|
43
|
|
|
|
|
|
|
our @ISA = qw(UI::Various::Text UI::Various::PoorTerm::base); |
|
44
|
|
|
|
|
|
|
our @EXPORT_OK = qw(); |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
######################################################################### |
|
47
|
|
|
|
|
|
|
######################################################################### |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 METHODS |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
######################################################################### |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 B<_show> - print UI element |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
$ui_element->_show($prefix); |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head3 example: |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
$_->_show(' '); |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head3 parameters: |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
$prefix text in front of first line |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head3 description: |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Show (print) the UI element. I
|
|
70
|
|
|
|
|
|
|
UI::Various::PoorTerm container elements!> |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
sub _show($$) |
|
77
|
|
|
|
|
|
|
{ |
|
78
|
66
|
|
|
66
|
|
5421
|
my ($self, $prefix) = @_; |
|
79
|
|
|
|
|
|
|
|
|
80
|
66
|
|
|
|
|
197
|
print $self->_wrap($prefix, $self->text), "\n"; |
|
81
|
|
|
|
|
|
|
} |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
1; |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
######################################################################### |
|
86
|
|
|
|
|
|
|
######################################################################### |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
L, L |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 LICENSE |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Copyright (C) Thomas Dorner. |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it |
|
97
|
|
|
|
|
|
|
under the same terms as Perl itself. See LICENSE file for more details. |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 AUTHOR |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Thomas Dorner Edorner (at) cpan (dot) orgE |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=cut |