https://en.wikipedia.org/wiki/ANSI_escape_code goes a bit more in-depth.