From 0dcb6a0a39332d9fb9f4b2c7b04476ccc3be13af Mon Sep 17 00:00:00 2001 From: venizelou andreas Date: Mon, 13 May 2024 19:13:03 +0300 Subject: [PATCH] Telnet, common private modes --- Protest/Front/telnet.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Protest/Front/telnet.js b/Protest/Front/telnet.js index b01b79a9..140c87c5 100644 --- a/Protest/Front/telnet.js +++ b/Protest/Front/telnet.js @@ -553,11 +553,24 @@ class Telnet extends Window { break; } - console.warn("Token: " + data[i]); - i++; } + //common private modes + if (symbol === "?") { + if (values.length === 1 && values[0] === 25) { + if (command === "l") { + this.cursorElement.style.visibility = "hidden"; + return 6; + } + + if (command === "h") { + this.cursorElement.style.visibility = "visible"; + return 6; + } + } + } + switch (command) { case "A": //cursor up this.cursor.y = Math.max(0, this.cursor.y - values[0] ?? 1);