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