diff --git a/lib/term_buffer.js b/lib/term_buffer.js
index <HASH>..<HASH> 100644
--- a/lib/term_buffer.js
+++ b/lib/term_buffer.js
@@ -505,6 +505,13 @@ TermBuffer.prototype.scroll = function(dir, lines) {
 	}
 };
 
+TermBuffer.prototype.write = function(write, encoding) {
+	if(this._writer === undefined) {
+		console.warn("TermBuffer.write is deprecated. Use TermWriter.write insted!");
+		this._writer = new (require("./term_writer.js"))(this);
+	}
+	return this._writer.write.apply(this._writer, arguments);
+}
 
 // Generates a diff between this.term and OtherTerm
 // if this diff is applied to this.term it results in the same as OtherTerm
Add compatibility write function to TermBuffer