@@ -12,7 +12,7 @@ |
||
| 12 | 12 | Console::log(" - " . Console::text('No need', 'underlined', 'bold') ." to use " . Console::text("php str_pad()", 'lightblue', 'underlined') . " method like with " .Console::text("Console::relog()", 'lightblue', 'underlined') ); |
| 13 | 13 | Console::log(" - You can customize colors (foreground and background) and some styles in same way than "); |
| 14 | 14 | Console::log(' ' .Console::text("Console::text()", 'lightblue', 'underlined') . |
| 15 | - ' and ' . Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.'); |
|
| 15 | + ' and ' . Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.'); |
|
| 16 | 16 | Console::log(); |
| 17 | 17 | Console::log(' '. Console::text('Basic usage:', 'underlined', 'bold')); |
| 18 | 18 | Console::log(); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | Console::log(" - " . Console::text('No need', 'underlined', 'bold') ." to use " . Console::text("php str_pad()", 'lightblue', 'underlined') . " method like with " .Console::text("Console::relog()", 'lightblue', 'underlined') ); |
| 13 | 13 | Console::log(" - You can customize colors (foreground and background) and some styles in same way than "); |
| 14 | 14 | Console::log(' ' .Console::text("Console::text()", 'lightblue', 'underlined') . |
| 15 | - ' and ' . Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.'); |
|
| 15 | + ' and ' . Console::text("Console::log()", 'lightblue', 'underlined'). ' methods.'); |
|
| 16 | 16 | Console::log(); |
| 17 | 17 | Console::log(' '. Console::text('Basic usage:', 'underlined', 'bold')); |
| 18 | 18 | Console::log(); |
@@ -27,19 +27,19 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | function shutdown(){ |
| 30 | - // echo "\033c"; // Clear terminal |
|
| 31 | - // echo PHP_EOL; // New line |
|
| 32 | - Console::clear(); |
|
| 33 | - Console::clear(); |
|
| 34 | - Console::clear(); |
|
| 35 | - Console::clear(); |
|
| 36 | - Console::clear(); |
|
| 37 | - Console::log('SIGINT signal detected, terminate script...'); |
|
| 38 | - sleep(1); |
|
| 30 | + // echo "\033c"; // Clear terminal |
|
| 31 | + // echo PHP_EOL; // New line |
|
| 32 | + Console::clear(); |
|
| 33 | + Console::clear(); |
|
| 34 | + Console::clear(); |
|
| 35 | + Console::clear(); |
|
| 36 | + Console::clear(); |
|
| 37 | + Console::log('SIGINT signal detected, terminate script...'); |
|
| 38 | + sleep(1); |
|
| 39 | 39 | |
| 40 | - // .. |
|
| 41 | - // Console::restoreWindow(); |
|
| 42 | - exit(0); |
|
| 40 | + // .. |
|
| 41 | + // Console::restoreWindow(); |
|
| 42 | + exit(0); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | function printLoader($introDelay = 75000, $printAll = true) |
@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | Console::log(' '.Console::text("-----------------------------------------------------------------", "green")); |
| 59 | 59 | Console::log(' '.Console::text("kristuff/mishell: A mini PHP library to build CLI app and reports", "green")); |
| 60 | 60 | Console::log(' '.Console::text('Made with ', 'green') . Console::text('♥', 'red'). |
| 61 | - Console::text(' ', 'green'). |
|
| 62 | - Console::text(" | © 2017-2024 kri157uff", "green")); |
|
| 61 | + Console::text(' ', 'green'). |
|
| 62 | + Console::text(" | © 2017-2024 kri157uff", "green")); |
|
| 63 | 63 | Console::log(' '.Console::text("-----------------------------------------------------------------", "green")); |
| 64 | 64 | Console::log(); |
| 65 | 65 | usleep($introDelay * random_int(7, 11)); |
@@ -140,8 +140,8 @@ discard block |
||
| 140 | 140 | $msg3 = Console::text(' [*]', $i==100 ? $hareColor : 'blue').Console::text(' |