1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:27:43 +00:00

WebServer: Make bound socket a clickable hyperlink :^)

This patch adds a hyperlink that can be hovered over and clicked on to
open the WebServer's index page in Browser.
This commit is contained in:
networkException 2022-09-04 22:24:21 +02:00 committed by Linus Groh
parent b29fbe96dd
commit 707b4f83eb

View file

@ -92,7 +92,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(server->listen(ipv4_address.value(), port));
outln("Listening on {}:{}", ipv4_address.value(), port);
out("Listening on ");
out("\033]8;;http://{}:{}\033\\", ipv4_address.value(), port);
out("{}:{}", ipv4_address.value(), port);
outln("\033]8;;\033\\");
TRY(Core::System::unveil("/etc/timezone", "r"));
TRY(Core::System::unveil("/res/icons", "r"));