From 9e757c75cde5c990481c8629d7d2d1f2908967d0 Mon Sep 17 00:00:00 2001 From: Szymon Jakubczak Date: Thu, 30 Oct 2014 05:11:59 -0700 Subject: [PATCH] Fix behavior of \b after line wrap. --- src/term.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/term.js b/src/term.js index f26617d..744b3f8 100644 --- a/src/term.js +++ b/src/term.js @@ -1473,6 +1473,9 @@ Terminal.prototype.write = function(data) { case '\x08': if (this.x > 0) { this.x--; + } else { + this.x = this.cols; + this.y--; } break;