Chapter 19. Utility functions for using ansi control chars in logs

Table of Contents

ansi_clear_screen — Move cursor to top left and clear screen.
ansi_set_color — Set the ansi Select Graphic Rendition mode.
ansi_set_color2 — Set the ansi Select Graphic Rendition mode.
ansi_set_color3 — Set the ansi Select Graphic Rendition mode.
ansi_reset_color — Resets Select Graphic Rendition mode.
ansi_new_line — Move cursor to new line.
ansi_cursor_move — Move cursor to new coordinates.
ansi_cursor_hide — Hides the cursor.
ansi_cursor_save — Saves the cursor position.
ansi_cursor_restore — Restores a previously saved cursor position.
ansi_cursor_show — Shows the cursor.

Utility functions for logging using ansi control characters. This lets you manipulate the cursor position and character color output and attributes of log messages.