1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

Add strikethrough rendering

This commit is contained in:
Wez Furlong 2018-02-10 21:42:55 -08:00
parent 5a6ed045ad
commit 4a0648fef5
2 changed files with 11 additions and 1 deletions

View File

@ -44,8 +44,8 @@ These are in the done/doing soon category:
- [x] Paste selection via Shift-Insert (bracketed paste is supported!)
- [x] SGR style mouse reporting (works in vim and tmux)
- [x] xterm style selection of text with mouse
- [x] Render underline, italic, bold, strikethrough
- [ ] Configuration file to specify fonts and colors (in progress)
- [ ] Render underline, italic, bold, strikethrough
- [ ] Command line argument parsing instead of launching user shell
- [ ] Hyperlinks see: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

View File

@ -736,6 +736,16 @@ impl<'a> TerminalWindow<'a> {
}
}
if attrs.strikethrough() {
self.buffer_image.draw_horizontal_line(
x,
y + (base_y - y) / 2,
cell_print_width * metric_width,
glyph_color.into(),
xgfx::Operator::Over,
);
}
x += glyph.x_advance;
}
}