I want to expose `console_code_for` so that other formatters can make use of it (say they wanted to do both a foreground and background code for example)