mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 07:16:38 +00:00
Fix ANSI underline encoding,
This commit is contained in:
parent
b1de2eda79
commit
600cecfad1
@ -46,6 +46,9 @@ class CanvasExportStore():
|
|||||||
outBuffer += "\u001b[1m"
|
outBuffer += "\u001b[1m"
|
||||||
if inCurCell[2] & self._CellState.CS_UNDERLINE:
|
if inCurCell[2] & self._CellState.CS_UNDERLINE:
|
||||||
outBuffer += "\u001b[4m"
|
outBuffer += "\u001b[4m"
|
||||||
|
elif (lastAttribs & self._CellState.CS_UNDERLINE) \
|
||||||
|
and ((inCurCell[2] & self._CellState.CS_UNDERLINE) == 0):
|
||||||
|
outBuffer += "\u001b[24m"
|
||||||
lastAttribs = inCurCell[2]
|
lastAttribs = inCurCell[2]
|
||||||
if lastColours == None or lastColours != inCurCell[:2]:
|
if lastColours == None or lastColours != inCurCell[:2]:
|
||||||
if (inCurCell[0] == -1) \
|
if (inCurCell[0] == -1) \
|
||||||
|
Loading…
Reference in New Issue
Block a user