Ensure extended underline style is cleared on SGR 24

This commit is contained in:
Daniel Imms
2022-08-07 11:51:52 -07:00
parent 2cfbee413f
commit bc528cd870
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -2500,6 +2500,7 @@ export class InputHandler extends Disposable implements IInputHandler {
} else if (p === 24) {
// not underlined
attr.fg &= ~FgFlags.UNDERLINE;
this._processUnderline(UnderlineStyle.NONE, attr);
} else if (p === 25) {
// not blink
attr.fg &= ~FgFlags.BLINK;
+1 -1
View File
@@ -36,7 +36,7 @@ export class AttributeData implements IAttributeData {
public isInverse(): number { return this.fg & FgFlags.INVERSE; }
public isBold(): number { return this.fg & FgFlags.BOLD; }
public isUnderline(): number {
if (this.hasExtendedAttrs() && this.extended.urlId) {
if (this.hasExtendedAttrs() && this.extended.underlineStyle !== UnderlineStyle.NONE) {
return 1;
}
return this.fg & FgFlags.UNDERLINE;