helpers\BaseConsole endAnsiFormat()

endAnsiFormat() public static method Resets any ANSI format set by previous method beginAnsiFormat() Any output after this will have default text format. This is equal to calling echo Console::ansiFormatCode([Console::RESET]) public static void endAnsiFormat ( )

helpers\BaseConsole confirm()

confirm() public static method Asks user to confirm by typing y or n. public static boolean confirm ( $message, $default = false )$message string To print out before waiting for user input $default boolean This value is returned if no selection is made. return boolean Whether user confirmed

helpers\BaseConsole clearScreenBeforeCursor()

clearScreenBeforeCursor() public static method Clears text from cursor to the beginning of the screen by sending ANSI control code ED with argument 1 to the terminal. Cursor position will not be changed. public static void clearScreenBeforeCursor ( )

helpers\BaseConsole clearScreenAfterCursor()

clearScreenAfterCursor() public static method Clears text from cursor to the end of the screen by sending ANSI control code ED with argument 0 to the terminal. Cursor position will not be changed. public static void clearScreenAfterCursor ( )

helpers\BaseConsole clearScreen()

clearScreen() public static method Clears entire screen content by sending ANSI control code ED with argument 2 to the terminal. Cursor position will not be changed. Note: ANSI.SYS implementation used in windows will reset cursor position to upper left corner of the screen. public static void clearScreen ( )

helpers\BaseConsole clearLineBeforeCursor()

clearLineBeforeCursor() public static method Clears text from cursor position to the beginning of the line by sending ANSI control code EL with argument 1 to the terminal. Cursor position will not be changed. public static void clearLineBeforeCursor ( )

helpers\BaseConsole clearLineAfterCursor()

clearLineAfterCursor() public static method Clears text from cursor position to the end of the line by sending ANSI control code EL with argument 0 to the terminal. Cursor position will not be changed. public static void clearLineAfterCursor ( )

helpers\BaseConsole clearLine()

clearLine() public static method Clears the line, the cursor is currently on by sending ANSI control code EL with argument 2 to the terminal. Cursor position will not be changed. public static void clearLine ( )

helpers\BaseConsole beginAnsiFormat()

beginAnsiFormat() public static method Echoes an ANSI format code that affects the formatting of any text that is printed afterwards. See also: ansiFormatCode() endAnsiFormat() public static void beginAnsiFormat ( $format )$format array An array containing formatting values. You can pass any of the FG_*, BG_* and TEXT_* constants and also xtermFgColor() and xtermBgColor() to specify a format.

helpers\BaseConsole ansiToHtml()

ansiToHtml() public static method Converts an ANSI formatted string to HTML Note: xTerm 256 bit colors are currently not supported. public static string ansiToHtml ( $string, $styleMap = [] )$string string The string to convert. $styleMap array An optional mapping of ANSI control codes such as FG_COLOR or BOLD to a set of css style definitions. The CSS style definitions are represented as an array where the array keys correspond to the css style attribute names and the values are the c