mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:17:44 +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:
parent
b29fbe96dd
commit
707b4f83eb
1 changed files with 4 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue