@@ -77,6 +77,7 @@ function equalFlags(cell1: IBufferCell | IAttributeData, cell2: IBufferCell): bo
7777 return cell1 . isInverse ( ) === cell2 . isInverse ( )
7878 && cell1 . isBold ( ) === cell2 . isBold ( )
7979 && cell1 . isUnderline ( ) === cell2 . isUnderline ( )
80+ && cell1 . isOverline ( ) === cell2 . isOverline ( )
8081 && cell1 . isBlink ( ) === cell2 . isBlink ( )
8182 && cell1 . isInvisible ( ) === cell2 . isInvisible ( )
8283 && cell1 . isItalic ( ) === cell2 . isItalic ( )
@@ -264,6 +265,7 @@ class StringSerializeHandler extends BaseSerializeHandler {
264265 if ( cell . isInverse ( ) !== oldCell . isInverse ( ) ) { sgrSeq . push ( cell . isInverse ( ) ? 7 : 27 ) ; }
265266 if ( cell . isBold ( ) !== oldCell . isBold ( ) ) { sgrSeq . push ( cell . isBold ( ) ? 1 : 22 ) ; }
266267 if ( cell . isUnderline ( ) !== oldCell . isUnderline ( ) ) { sgrSeq . push ( cell . isUnderline ( ) ? 4 : 24 ) ; }
268+ if ( cell . isOverline ( ) !== oldCell . isOverline ( ) ) { sgrSeq . push ( cell . isOverline ( ) ? 53 : 55 ) ; }
267269 if ( cell . isBlink ( ) !== oldCell . isBlink ( ) ) { sgrSeq . push ( cell . isBlink ( ) ? 5 : 25 ) ; }
268270 if ( cell . isInvisible ( ) !== oldCell . isInvisible ( ) ) { sgrSeq . push ( cell . isInvisible ( ) ? 8 : 28 ) ; }
269271 if ( cell . isItalic ( ) !== oldCell . isItalic ( ) ) { sgrSeq . push ( cell . isItalic ( ) ? 3 : 23 ) ; }
@@ -625,7 +627,9 @@ export class HTMLSerializeHandler extends BaseSerializeHandler {
625627
626628 if ( cell . isInverse ( ) ) { content . push ( 'color: #000000; background-color: #BFBFBF;' ) ; }
627629 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;' ) ; }
629633 if ( cell . isBlink ( ) ) { content . push ( 'text-decoration: blink;' ) ; }
630634 if ( cell . isInvisible ( ) ) { content . push ( 'visibility: hidden;' ) ; }
631635 if ( cell . isItalic ( ) ) { content . push ( 'font-style: italic;' ) ; }
0 commit comments