File Coverage

blib/lib/Term/Screen/Lite.pm
Criterion Covered Total %
statement 13 14 92.8
branch 1 2 50.0
condition n/a
subroutine 5 5 100.0
pod n/a
total 19 21 90.4


line stmt bran cond sub pod time code
1             package Term::Screen::Lite;
2              
3             $Term::Screen::Lite::VERSION = '0.05';
4             $Term::Screen::Lite::AUTHORITY = 'cpan:MANWAR';
5              
6             =head1 NAME
7              
8             Term::Screen::Lite - Platform independent interface to terminal screen.
9              
10             =head1 VERSION
11              
12             Version 0.05
13              
14             =cut
15              
16 1     1   51605 use 5.006;
  1         3  
17 1     1   344 use Data::Dumper;
  1         4835  
  1         51  
18              
19 1     1   303 use Moo;
  1         7311  
  1         4  
20 1     1   1280 use namespace::clean;
  1         7382  
  1         6  
21              
22             BEGIN {
23 1 50   1   261 if ($^O eq 'MSWin32') {
24 0         0 extends 'Term::Screen::Lite::Win32';
25             }
26             else {
27 1         4 extends 'Term::Screen::Lite::Generic';
28             }
29             }
30              
31             =head1 DESCRIPTION
32              
33             It currently provides only one function to clear screen irrespective of platofrm.
34             I was looking for such feature and couldn't find one that works without any issue
35             for me. I am planning to use this in my L distribution.
36              
37             This is just a wrapper class for two other packages L
38             and L. Depending on the platform, relevant package
39             gets imported by the wrapper.
40              
41             =head1 SYNOPSIS
42              
43             use strict; use warnings;
44             use Term::Screen::Lite;
45              
46             print Term::Screen::Lite->new->clear;
47              
48             =head1 METHODS
49              
50             =head2 clear()
51              
52             Clears the screen and takes the pointer to the top left corner of the screen.
53              
54             =head1 AUTHOR
55              
56             Mohammad S Anwar, C<< >>
57              
58             =head1 REPOSITORY
59              
60             L
61              
62             =head1 SEE ALSO
63              
64             L
65              
66             =head1 BUGS
67              
68             Please report any bugs or feature requests to C,
69             or through the web interface at L.
70             I will be notified and then you'll automatically be notified of progress on your
71             bug as I make changes.
72              
73             =head1 SUPPORT
74              
75             You can find documentation for this module with the perldoc command.
76              
77             perldoc Term::Screen::Lite
78              
79             You can also look for information at:
80              
81             =over 4
82              
83             =item * RT: CPAN's request tracker (report bugs here)
84              
85             L
86              
87             =item * AnnoCPAN: Annotated CPAN documentation
88              
89             L
90              
91             =item * CPAN Ratings
92              
93             L
94              
95             =item * Search CPAN
96              
97             L
98              
99             =back
100              
101             =head1 LICENSE AND COPYRIGHT
102              
103             Copyright (C) 2015 - 2017 Mohammad S Anwar.
104              
105             This program is free software; you can redistribute it and / or modify it under
106             the terms of the the Artistic License (2.0). You may obtain a copy of the full
107             license at:
108              
109             L
110              
111             Any use, modification, and distribution of the Standard or Modified Versions is
112             governed by this Artistic License.By using, modifying or distributing the Package,
113             you accept this license. Do not use, modify, or distribute the Package, if you do
114             not accept this license.
115              
116             If your Modified Version has been derived from a Modified Version made by someone
117             other than you,you are nevertheless required to ensure that your Modified Version
118             complies with the requirements of this license.
119              
120             This license does not grant you the right to use any trademark, service mark,
121             tradename, or logo of the Copyright Holder.
122              
123             This license includes the non-exclusive, worldwide, free-of-charge patent license
124             to make, have made, use, offer to sell, sell, import and otherwise transfer the
125             Package with respect to any patent claims licensable by the Copyright Holder that
126             are necessarily infringed by the Package. If you institute patent litigation
127             (including a cross-claim or counterclaim) against any party alleging that the
128             Package constitutes direct or contributory patent infringement,then this Artistic
129             License to you shall terminate on the date that such litigation is filed.
130              
131             Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND
132             CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED
133             WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
134             NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS
135             REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT,
136             INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE
137             OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
138              
139             =cut
140              
141             1; # End of Term::Screen::Lite