n(container) {
                    this.xterm.open(container);
                }

                handleTermData = (data) => {
                    const ord = data.charCodeAt(0);
                    data = data.replace(/\r(?!\n)/g, "\n"); // Convert lone CRs to LF

                    // Handle pasted data
                    if (data.length > 1 && data.includes("\n")) {
                        let alreadyWrittenChars = 0;
                        // If line already had data on it, merge pasted data with it
