Details
Steps to reproduce
Xterm renders exceptions when the container resizes single-line text content, and can be reproduced using single-line text, and returns to normal after adding enter. For detailed code and demonstration, see the video below. The initial troubleshooting should be that Buffer.resize() renders abnormally for a single line of text.