Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | class Screen |
||
8 | { |
||
9 | /** |
||
10 | * Clears screen |
||
11 | * |
||
12 | * @return string |
||
13 | */ |
||
14 | 1 | public static function clear(): string |
|
15 | { |
||
16 | 1 | return CSI . '2J'; |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * Clears screen |
||
21 | * |
||
22 | * @return string |
||
23 | */ |
||
24 | 1 | public static function eraseToCursor(): string |
|
25 | { |
||
26 | 1 | return CSI . '1J'; |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * Clears screen |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | 1 | public static function eraseFromCursor(): string |
|
37 | } |
||
38 | } |
||
39 |