                        if (this.input != "") {
                            this.inputBuffer.addData(this.input);
                            alreadyWrittenChars = this.input.length;
                            this.input = "";
                        }
                        this.inputBuffer.addData(data);
                        // If input is active, write the first line
                        if (this.activeInput) {
                            let line = this.inputBuffer.nextLine();
                  