mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
Add strikethrough rendering
This commit is contained in:
parent
5a6ed045ad
commit
4a0648fef5
@ -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
|
||||
|
||||
|
10
src/xwin.rs
10
src/xwin.rs
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user