Fix resources toggling and rendering
Improve ansi rendering, fixes \r parsing