@@ -240,6 +240,7 @@ if (document.location.pathname === '/test') {
240240 document . getElementById ( 'add-decoration' ) . addEventListener ( 'click' , addDecoration ) ;
241241 document . getElementById ( 'add-overview-ruler' ) . addEventListener ( 'click' , addOverviewRuler ) ;
242242 document . getElementById ( 'decoration-stress-test' ) . addEventListener ( 'click' , decorationStressTest ) ;
243+ document . getElementById ( 'ligatures-test' ) . addEventListener ( 'click' , ligaturesTest ) ;
243244 document . getElementById ( 'weblinks-test' ) . addEventListener ( 'click' , testWeblinks ) ;
244245 document . getElementById ( 'bce' ) . addEventListener ( 'click' , coloredErase ) ;
245246 addVtButtons ( ) ;
@@ -1307,6 +1308,20 @@ function addVtButtons(): void {
13071308 document . querySelector ( '#vt-container' ) . appendChild ( vtFragment ) ;
13081309}
13091310
1311+ function ligaturesTest ( ) : void {
1312+ term . write ( [
1313+ '' ,
1314+ '-<< -< -<- <-- <--- <<- <- -> ->> --> ---> ->- >- >>-' ,
1315+ '=<< =< =<= <== <=== <<= <= => =>> ==> ===> =>= >= >>=' ,
1316+ '<-> <--> <---> <----> <=> <==> <===> <====> :: ::: __' ,
1317+ '<~~ </ </> /> ~~> == != /= ~= <> === !== !=== =/= =!=' ,
1318+ '<: := *= *+ <* <*> *> <| <|> |> <. <.> .> +* =* =: :>' ,
1319+ '(* *) /* */ [| |] {| |} ++ +++ \/ /\ |- -| <!-- <!---' ,
1320+ '==== ===== ====== ======= ======== =========' ,
1321+ '---- ----- ------ ------- -------- ---------'
1322+ ] . join ( '\r\n' ) ) ;
1323+ }
1324+
13101325function testWeblinks ( ) : void {
13111326 const linkExamples = `
13121327aaa http://example.com aaa http://example.com aaa
0 commit comments