mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +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
Notes:
sideshowbarker
2024-07-17 16:23:55 +09:00
Author: https://github.com/networkException
Commit: 707b4f83eb
Pull-request: https://github.com/SerenityOS/serenity/pull/15130
Reviewed-by: https://github.com/linusg
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