Skip to content

Commit

Permalink
Skip unsupported xterm-256color.Setulc for now
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Jul 29, 2024
1 parent fef3a41 commit 0973c53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/tput.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ Tput.prototype._compile = function(info, key, str) {
return noop;
}

if (!str) {
// skip unsupported xterm-256color.Setulc for now
if (!str || info.name === "xterm-256color" && key === "Setulc") {
return noop;
}

Expand Down Expand Up @@ -1155,7 +1156,7 @@ Tput.prototype._compile = function(info, key, str) {
: new Function('params', code);
} catch (e) {
console.error('');
console.error('Error on %s:', tkey);
console.error('Error "%s" on %s:', e.toString(), tkey);
console.error(JSON.stringify(str));
console.error('');
console.error(code.replace(/(,|;)/g, '$1\n'));
Expand Down

0 comments on commit 0973c53

Please sign in to comment.