From 155eac867783f335d9e08cbf44524459af597852 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 14 Jul 2013 07:02:59 -0500 Subject: [PATCH] potential cursor handling during render. --- lib/widget.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/widget.js b/lib/widget.js index e8d5185..5160f62 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -653,6 +653,12 @@ Screen.prototype.draw = function(start, end) { , ly = -1 , o; + // var cx = this.program.x + // , cy = this.program.y + // , ch = this.program.cursorHidden; + // + // if (!ch) this.program.hideCursor(); + this.program.saveCursor(); for (y = start; y <= end; y++) { @@ -790,6 +796,9 @@ Screen.prototype.draw = function(start, end) { } } + // this.program.cup(cy, cx); + // if (ch) this.program.hideCursor(); + this.program.restoreCursor(); };