From 50eac5d2c96ccbb36d87c43cf5eed0ed023b9d7d Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 25 Nov 2020 06:15:13 +0100
Subject: [PATCH] Open in-terminal links in separate window.

---
 rogue_chat.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rogue_chat.html b/rogue_chat.html
index 49fdda0..a8b6ba7 100644
--- a/rogue_chat.html
+++ b/rogue_chat.html
@@ -253,7 +253,7 @@ let terminal = {
               let start_x = 0;
               for (let span of tui.links[y]) {
                   chunks.push(escapeHTML(line.slice(start_x, span[0])));
-                  chunks.push('<a href="');
+                  chunks.push('<a target="_blank" href="');
                   chunks.push(escapeHTML(span[2]));
                   chunks.push('">');
                   chunks.push(escapeHTML(line.slice(span[0], span[1])));
-- 
2.30.2