minor: reset error on tput.
This commit is contained in:
parent
5ccc80d8b8
commit
05dcd84216
|
@ -53,6 +53,7 @@ function Tput(options) {
|
||||||
this.extended = options.extended;
|
this.extended = options.extended;
|
||||||
this.printf = options.printf;
|
this.printf = options.printf;
|
||||||
this.termcap = options.termcap;
|
this.termcap = options.termcap;
|
||||||
|
this.error = null;
|
||||||
|
|
||||||
this.terminfoPrefix = options.terminfoPrefix;
|
this.terminfoPrefix = options.terminfoPrefix;
|
||||||
this.terminfoFile = options.terminfoFile;
|
this.terminfoFile = options.terminfoFile;
|
||||||
|
@ -64,6 +65,7 @@ function Tput(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Tput.prototype.setup = function() {
|
Tput.prototype.setup = function() {
|
||||||
|
this.error = null;
|
||||||
try {
|
try {
|
||||||
if (this.termcap) {
|
if (this.termcap) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue