mirror of
https://github.com/alecthomas/chroma.git
synced 2025-03-19 21:10:15 +02:00
Add italics support for indexed colour terminals
This commit is contained in:
parent
f2e05136f7
commit
2f5349aa18
@ -174,6 +174,9 @@ func entryToEscapeSequence(table *ttyTable, entry chroma.StyleEntry) string {
|
|||||||
if entry.Underline == chroma.Yes {
|
if entry.Underline == chroma.Yes {
|
||||||
out += "\033[4m"
|
out += "\033[4m"
|
||||||
}
|
}
|
||||||
|
if entry.Italic == chroma.Yes {
|
||||||
|
out += "\033[3m"
|
||||||
|
}
|
||||||
if entry.Colour.IsSet() {
|
if entry.Colour.IsSet() {
|
||||||
out += table.foreground[findClosest(table, entry.Colour)]
|
out += table.foreground[findClosest(table, entry.Colour)]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user