From 4c53afa11509a7793a45bfd40fab1dc24212ec51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Deuc=D0=B5?= <shurd@sasktel.net>
Date: Mon, 26 Dec 2022 12:17:32 -0500
Subject: [PATCH] Document sequences SyncTERM sends on key presses.

---
 src/conio/cterm.txt | 66 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)

diff --git a/src/conio/cterm.txt b/src/conio/cterm.txt
index cf1bd54b95..45d8a07957 100644
--- a/src/conio/cterm.txt
+++ b/src/conio/cterm.txt
@@ -1304,3 +1304,69 @@ heard it, ALWAYS follow it with an 0x0f 0x0e is the shift lock character which
 *will* cause people with anything but an ANSI-BBS terminal (ie: *nix users
 using the bundled telnet app) to have their screen messed up.  0x0f "undoes"
 the 0x0e.
+
+Sequences sent by SyncTERM
+The following keys in SyncTERM result in the specified sequence being
+sent to the remote.  This is not part of CTerm, but are documented here
+for people who want to maintain compatibility.
+
+Left Arrow    "\033[D"
+Right Arrow   "\033[C"
+Up Arrow      "\033[A"
+Down Arrow    "\033[B"
+Home          "\033[H"
+End           "\033[K"
+Select        "\033[K" (Same as End due to termcap weirdness)
+Delete        "\x7f"
+Page Down     "\033[U"
+Page Up       "\033[V"
+F1            "\033[11~"
+F2            "\033[12~"
+F3            "\033[13~"
+F4            "\033[14~"
+F5            "\033[15~"
+F6            "\033[17~" (Note the jump from 15 to 17 here)
+F7            "\033[18~"
+F8            "\033[19~"
+F9            "\033[20~"
+F10           "\033[21~"
+F11           "\033[23~" (Note the jump from 21 to 23 here)
+F12           "\033[24~"
+Shift + F1    "\033[11;2~"
+Shift + F2    "\033[12;2~"
+Shift + F3    "\033[13;2~"
+Shift + F4    "\033[14;2~"
+Shift + F5    "\033[15;2~"
+Shift + F6    "\033[17;2~"
+Shift + F7    "\033[18;2~"
+Shift + F8    "\033[19;2~"
+Shift + F9    "\033[20;2~"
+Shift + F10   "\033[21;2~"
+Shift + F11   "\033[23;2~"
+Shift + F12   "\033[24;2~"
+Alt + F1      "\033[11;3~"
+Alt + F2      "\033[12;3~"
+Alt + F3      "\033[13;3~"
+Alt + F4      "\033[14;3~"
+Alt + F5      "\033[15;3~"
+Alt + F6      "\033[17;3~"
+Alt + F7      "\033[18;3~"
+Alt + F8      "\033[19;3~"
+Alt + F9      "\033[20;3~"
+Alt + F10     "\033[21;3~"
+Alt + F11     "\033[23;3~"
+Alt + F12     "\033[24;3~"
+Control + F1  "\033[11;5~"
+Control + F2  "\033[12;5~"
+Control + F3  "\033[13;5~"
+Control + F4  "\033[14;5~"
+Control + F5  "\033[15;5~"
+Control + F6  "\033[17;5~"
+Control + F7  "\033[18;5~"
+Control + F8  "\033[19;5~"
+Control + F9  "\033[20;5~"
+Control + F10 "\033[21;5~"
+Control + F11 "\033[23;5~"
+Control + F12 "\033[24;5~"
+Insert        "\033[@"
+Back Tab      "\033[Z"
-- 
GitLab