Added support for ansi logging

- Fixed core dumps on something (it was 5 years ago when i wrote it)