Thank you so much for trying it out.
The languages scratchpad actually comes from a third party provider, including execution and output. I will definitely see if I can escape the ANSI codes.
About storing states absolutely makes sense. will fix this 100%.