Skip to content

Commit

Permalink
fix: pwsh ghost text detection (#253)
Browse files Browse the repository at this point in the history
Signed-off-by: Chapman Pendery <[email protected]>
  • Loading branch information
cpendery committed May 2, 2024
1 parent 4310656 commit ae6e6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isterm/commandManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ export class CommandManager {
const dim = (cell?.isDim() ?? 0) > 0;
const italic = (cell?.isItalic() ?? 0) > 0;
const dullColor = color == 8 || color == 7 || (color ?? 0) > 235 || (color == 15 && dim);
const dullItalic = (color ?? 0) > 235 || (dullColor && italic);
const dimItalic = dim || italic;
if (this.#shell == Shell.Powershell) {
return false;
} else if (this.#shell == Shell.Pwsh) {
return dullItalic;
return dimItalic;
}
return dullColor;
}
Expand Down

0 comments on commit ae6e6e1

Please sign in to comment.