Created
September 1, 2017 22:43
-
-
Save gladx/da121bc9dcfa9dc9698f47fe912ed8c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// http://ascii-table.com/ansi-escape-sequences.php | |
// http://ascii-table.com/ansi-escape-sequences-vt-100.php | |
// "\033[?25l" Hide the cursor. | |
// "\033[?25h" Show the cursor. | |
// "\033[K" Delete everything from the cursor to the end of the line. | |
// echo '1-Start Line', "\n"; | |
// echo '2-Second Line', "\n"; | |
// echo '3-Third Line', "\n"; | |
// echo '4-Forth Line', "\n"; | |
//echo "\033[2J"; // Erase Display: | |
//echo "\033[2A"; // Move 2 line Cursor UP , B down , C left , D right | |
echo "\033[0;31;47m", "Hello \n"; // Set Graphics Mode: Text attributes; Foreground colors ; Background colors | |
echo "\033[1;31;47m", "Hello \n"; | |
echo "\033[2;31;47m", "Hello \n"; | |
echo "\033[3;31;47m", "Hello \n"; | |
echo "\033[4;31;47m", "Hello \n"; | |
echo "\033[5;31;47m", "Hello \n"; | |
echo "\033[6;31;47m", "Hello \n"; | |
echo "\033[7;31;47m", "Hello \n"; | |
echo "\033[8;31;47m", "Hello \n"; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment