Added support for rendering on non-TTY terminals