Fix newline in output field

Fix newline code in output field.

* add `</span>` for `[39m`
* remove existing line and add result line for `[2K[0G`.