More repo functions, ANSI escape handlers, all sorts of fun.