From 3edbe0c67ceae5f1464c07d3d7dd6673a3b98d3a Mon Sep 17 00:00:00 2001 From: y0ast Date: Wed, 23 Dec 2020 18:03:33 +0100 Subject: add italics support Fixes: https://todo.sr.ht/~sircmpwn/aerc2/416 Co-authored-by: JD --- widgets/terminal.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'widgets') diff --git a/widgets/terminal.go b/widgets/terminal.go index e83c812f..02775215 100644 --- a/widgets/terminal.go +++ b/widgets/terminal.go @@ -425,6 +425,9 @@ func (term *Terminal) styleFromCell(cell *vterm.ScreenCell) tcell.Style { if cell.Attrs().Bold != 0 { style = style.Bold(true) } + if cell.Attrs().Italic != 0 { + style = style.Italic(true) + } if cell.Attrs().Underline != 0 { style = style.Underline(true) } -- cgit