From 20d19ac8b62f8057bf90ac0b129484296098d99b Mon Sep 17 00:00:00 2001 From: Hugo Parente Lima Date: Sat, 12 Oct 2024 21:09:59 -0300 Subject: [PATCH] Let crystal play server print a hyperlink. More info about hyperlinks in terminals at https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda --- src/compiler/crystal/tools/playground/server.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/tools/playground/server.cr b/src/compiler/crystal/tools/playground/server.cr index 1729bd7a98b3..50024e40a318 100644 --- a/src/compiler/crystal/tools/playground/server.cr +++ b/src/compiler/crystal/tools/playground/server.cr @@ -518,7 +518,7 @@ module Crystal::Playground @port = address.port @host = address.address - puts "Listening on http://#{address}" + puts "Listening on \e]8;;http://#{address}\ahttp://#{address}\e]8;;\a" if address.unspecified? puts "WARNING running playground on #{address.address} is insecure." end