Skip to content

Commit

Permalink
Telnet, common private modes
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed May 13, 2024
1 parent dca57e1 commit 0dcb6a0
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions Protest/Front/telnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0dcb6a0

Please sign in to comment.