1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

LibVT+Terminal: Support hyperlinks in the terminal :^)

We now support basic hyperlinking in the terminal with <OSC>;8;;URL<ST>
Links are opened via LaunchServer on Ctrl+LeftMouse.
This commit is contained in:
Andreas Kling 2020-05-09 16:16:16 +02:00
parent 427863f275
commit f596b12a04
7 changed files with 62 additions and 6 deletions

View file

@ -190,7 +190,7 @@ int main(int argc, char** argv)
GUI::Application app(argc, argv);
if (pledge("stdio tty rpath accept cpath wpath shared_buffer proc exec", nullptr) < 0) {
if (pledge("stdio tty rpath accept cpath wpath shared_buffer proc exec unix", nullptr) < 0) {
perror("pledge");
return 1;
}
@ -313,6 +313,11 @@ int main(int argc, char** argv)
return 1;
}
if (unveil("/tmp/portal/launch", "rw") < 0) {
perror("unveil");
return 1;
}
if (unveil(config->file_name().characters(), "rwc")) {
perror("unveil");
return 1;