@@ -77,6 +77,7 @@ function equalFlags(cell1: IBufferCell | IAttributeData, cell2: IBufferCell): bo
77
77
return cell1 . isInverse ( ) === cell2 . isInverse ( )
78
78
&& cell1 . isBold ( ) === cell2 . isBold ( )
79
79
&& cell1 . isUnderline ( ) === cell2 . isUnderline ( )
80
+ && cell1 . isOverline ( ) === cell2 . isOverline ( )
80
81
&& cell1 . isBlink ( ) === cell2 . isBlink ( )
81
82
&& cell1 . isInvisible ( ) === cell2 . isInvisible ( )
82
83
&& cell1 . isItalic ( ) === cell2 . isItalic ( )
@@ -264,6 +265,7 @@ class StringSerializeHandler extends BaseSerializeHandler {
264
265
if ( cell . isInverse ( ) !== oldCell . isInverse ( ) ) { sgrSeq . push ( cell . isInverse ( ) ? 7 : 27 ) ; }
265
266
if ( cell . isBold ( ) !== oldCell . isBold ( ) ) { sgrSeq . push ( cell . isBold ( ) ? 1 : 22 ) ; }
266
267
if ( cell . isUnderline ( ) !== oldCell . isUnderline ( ) ) { sgrSeq . push ( cell . isUnderline ( ) ? 4 : 24 ) ; }
268
+ if ( cell . isOverline ( ) !== oldCell . isOverline ( ) ) { sgrSeq . push ( cell . isOverline ( ) ? 53 : 55 ) ; }
267
269
if ( cell . isBlink ( ) !== oldCell . isBlink ( ) ) { sgrSeq . push ( cell . isBlink ( ) ? 5 : 25 ) ; }
268
270
if ( cell . isInvisible ( ) !== oldCell . isInvisible ( ) ) { sgrSeq . push ( cell . isInvisible ( ) ? 8 : 28 ) ; }
269
271
if ( cell . isItalic ( ) !== oldCell . isItalic ( ) ) { sgrSeq . push ( cell . isItalic ( ) ? 3 : 23 ) ; }
@@ -625,7 +627,9 @@ export class HTMLSerializeHandler extends BaseSerializeHandler {
625
627
626
628
if ( cell . isInverse ( ) ) { content . push ( 'color: #000000; background-color: #BFBFBF;' ) ; }
627
629
if ( cell . isBold ( ) ) { content . push ( 'font-weight: bold;' ) ; }
628
- if ( cell . isUnderline ( ) ) { content . push ( 'text-decoration: underline;' ) ; }
630
+ if ( cell . isUnderline ( ) && cell . isOverline ( ) ) { content . push ( 'text-decoration: overline underline;' ) ; }
631
+ else if ( cell . isUnderline ( ) ) { content . push ( 'text-decoration: underline;' ) ; }
632
+ else if ( cell . isOverline ( ) ) { content . push ( 'text-decoration: overline;' ) ; }
629
633
if ( cell . isBlink ( ) ) { content . push ( 'text-decoration: blink;' ) ; }
630
634
if ( cell . isInvisible ( ) ) { content . push ( 'visibility: hidden;' ) ; }
631
635
if ( cell . isItalic ( ) ) { content . push ( 'font-style: italic;' ) ; }
0 commit comments