Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
Chapter 30. Utility functions for using ansi control chars in logs
Utility functions for logging using ansi control characters. This lets you manipulate the cursor position and character color output and attributes of log messages.