From a19586fc090bb8fb8cf7383b1def006501bacccf Mon Sep 17 00:00:00 2001 From: Nigel Reed <nigel@nigelreed.net> Date: Sat, 24 Feb 2024 03:24:43 -0600 Subject: [PATCH] Added NEW-ENVIRON. Note the variable is NEW_ENVIRON insce you cannot use dashes in variables. --- exec/load/telnet_lib.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exec/load/telnet_lib.js b/exec/load/telnet_lib.js index 41555e948f..727e74c078 100644 --- a/exec/load/telnet_lib.js +++ b/exec/load/telnet_lib.js @@ -19,6 +19,8 @@ const NOP =241 /* 0xf1 - No operation */ const SE =240 /* 0xf0 - End of subnegotiation parameters. */ +const NEW_ENVIRON =39 /* 0x27 - NEW-ENVIRON - Exchange environment vars etc. */ + /* js doesn't like - in variables so must use underscore */ const NAWS =31 /* 0x1f - NAWS - Negotiate About Window Size */ const MSDP =69 /* 0x45 - MSDP - MUD Server Data Protocl */ const MMSP =70 /* 0x46 - MMSP - MUD Master Server Protocol */ @@ -56,6 +58,7 @@ function cmdstr(cmd) case MXP: return "MXP"; case AARD: return "AARD"; case GCMP: return "GCMP"; + case NEW_ENVIRON: return "NEW-ENVIRON"; } return cmd; } -- GitLab