support italic escape code in previews (#936)
This commit is contained in:
parent
cb7aa13218
commit
75869f0ac3
@ -110,6 +110,8 @@ func applyAnsiCodes(s string, st tcell.Style) tcell.Style {
|
|||||||
st = st.Bold(true)
|
st = st.Bold(true)
|
||||||
case n == 2:
|
case n == 2:
|
||||||
st = st.Dim(true)
|
st = st.Dim(true)
|
||||||
|
case n == 3:
|
||||||
|
st = st.Italic(true)
|
||||||
case n == 4:
|
case n == 4:
|
||||||
st = st.Underline(true)
|
st = st.Underline(true)
|
||||||
case n == 5 || n == 6:
|
case n == 5 || n == 6:
|
||||||
|
Loading…
Reference in New Issue
Block a user