respect invisible text attribute

This is a weird attribute TBH.

xterm seems to replace the cells with spaces: copying and pasting
results in spaces.

Kitty ignores it.

VTE doesn't render it but allows copying and pasting.

The latter is now also the behavior in wezterm.
This commit is contained in:
Wez Furlong committed 2022-09-08 08:43:27 -07:00
1 parent 5a4ff6afc5
commit 598f5081ec
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ As features stabilize some brief notes about them will accumulate here.
[#2491](https://github.com/wez/wezterm/pull/2492)
* Panic when processing a sixel with inconsistent width information
[#2500](https://github.com/wez/wezterm/issues/2500)
* Cells with the invisible/hidden attribute are now invisible
### 20220905-102802-7d4b8249
+1 -1
View File
@@ -2990,7 +2990,7 @@ impl super::TermWindow {
pane: params.pane,
});
if glyph_color == bg_color {
if glyph_color == bg_color || cluster.attrs.invisible() {
// Essentially invisible: don't render it, as anti-aliasing
// can cause a ghostly outline of the invisible glyph to appear.
continue;