I'm trying to write a simple CLI application in Jack. The problem I'm running into is that when text "wraps" around the screen the new text is inserted over the old text. I.e, the old text is never cleared.
Here's what the application looks like at first:
Here's what it looks like after wrapping:
Any ideas on how to fix this?