1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 14:21:48 +02:00

Filter OSC 8 correctly

This allows Nix to use lowdown 1.2.0 which outputs OSC-8 links.

(cherry picked from commit 1301f8434d)
This commit is contained in:
Jack Wilsdon 2024-11-13 00:49:46 +00:00 committed by Mic92
parent 2c89c38fa1
commit e144f61ec0
2 changed files with 12 additions and 0 deletions

View file

@ -700,4 +700,9 @@ namespace nix {
ASSERT_EQ(filterANSIEscapes("f𐍈𐍈bär", true, 4), "f𐍈𐍈b");
}
TEST(filterANSIEscapes, osc8)
{
ASSERT_EQ(filterANSIEscapes("\e]8;;http://example.com\e\\This is a link\e]8;;\e\\"), "This is a link");
}
}