def rewrite(self, line, **markup):
erase = markup.pop("<STR_LIT>", False)<EOL>if erase:<EOL><INDENT>fill_count = self._tw.fullwidth - len(line) - <NUM_LIT:1><EOL>fill = "<STR_LIT:U+0020>" * fill_count<EOL><DEDENT>else:<EOL><INDENT>fill = "<STR_LIT>"<EOL><DEDENT>line = str(line)<EOL>self._tw.write("<STR_LIT:\r>" + line + fill, **markup)<EOL>
Rewinds the terminal cursor to the beginning and writes the given line.

:kwarg erase: if True, will also add spaces until the full terminal width to ensure
    previous lines are properly erased.

The rest of the keyword arguments are markup instructions.