minor: reset error on tput.

This commit is contained in:
Christopher Jeffrey 2015-08-18 02:24:10 -07:00
parent 5ccc80d8b8
commit 05dcd84216
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ function Tput(options) {
this.extended = options.extended;
this.printf = options.printf;
this.termcap = options.termcap;
this.error = null;
this.terminfoPrefix = options.terminfoPrefix;
this.terminfoFile = options.terminfoFile;
@ -64,6 +65,7 @@ function Tput(options) {
}
Tput.prototype.setup = function() {
this.error = null;
try {
if (this.termcap) {
try {