Support strikethrough text style

This commit is contained in:
Simon Lamon
2021-05-15 17:35:23 +02:00
parent 873dd76167
commit d19a740825
10 changed files with 65 additions and 11 deletions
+6
View File
@@ -2478,6 +2478,9 @@ export class InputHandler extends Disposable implements IInputHandler {
} else if (p === 8) {
// invisible
attr.fg |= FgFlags.INVISIBLE;
} else if (p === 9) {
// strikethrough
attr.fg |= FgFlags.STRIKETHROUGH;
} else if (p === 2) {
// dimmed text
attr.bg |= BgFlags.DIM;
@@ -2503,6 +2506,9 @@ export class InputHandler extends Disposable implements IInputHandler {
} else if (p === 28) {
// not invisible
attr.fg &= ~FgFlags.INVISIBLE;
} else if (p === 29) {
// not strikethrough
attr.fg &= ~FgFlags.STRIKETHROUGH;
} else if (p === 39) {
// reset fg
attr.fg &= ~(Attributes.CM_MASK | Attributes.RGB_MASK);