summaryrefslogtreecommitdiffhomepage
path: root/src/console
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-08-13 16:57:05 -0400
committermidipix <writeonce@midipix.org>2016-08-14 07:49:18 -0400
commit5e84dc1302cde351c49f75bb62eb211144601362 (patch)
treeb994c650261b785faa76f6c260b61da334351ce5 /src/console
parent9b23a2dabd0c5cf84309b5d247cab05b77efa6dd (diff)
downloadptycon-5e84dc1302cde351c49f75bb62eb211144601362.tar.bz2
ptycon-5e84dc1302cde351c49f75bb62eb211144601362.tar.xz
virtual key-code translation: added page up/down, home/end, insert/delete.
Diffstat (limited to 'src/console')
-rw-r--r--src/console/ptyc_console_vkcode.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/console/ptyc_console_vkcode.c b/src/console/ptyc_console_vkcode.c
index e9606fa..3938046 100644
--- a/src/console/ptyc_console_vkcode.c
+++ b/src/console/ptyc_console_vkcode.c
@@ -45,10 +45,10 @@ const struct ptyc_vkcode ptyc_vkcode[0x100] = {
[VK_ACCEPT] = P0(),
[VK_MODECHANGE] = P0(),
[VK_SPACE] = P0(),
- [VK_PRIOR] = P0(),
- [VK_NEXT] = P0(),
- [VK_END] = P0(),
- [VK_HOME] = P0(),
+ [VK_PRIOR] = P4(0x1b,0x5b,0x35,0x7e),
+ [VK_NEXT] = P4(0x1b,0x5b,0x36,0x7e),
+ [VK_END] = P3(0x1b,0x5b,0x46),
+ [VK_HOME] = P3(0x1b,0x5b,0x48),
[VK_LEFT] = P3(0x1b,0x5b,0x44),
[VK_UP] = P3(0x1b,0x5b,0x41),
[VK_RIGHT] = P3(0x1b,0x5b,0x43),
@@ -57,8 +57,8 @@ const struct ptyc_vkcode ptyc_vkcode[0x100] = {
[VK_PRINT] = P0(),
[VK_EXECUTE] = P0(),
[VK_SNAPSHOT] = P0(),
- [VK_INSERT] = P0(),
- [VK_DELETE] = P0(),
+ [VK_INSERT] = P4(0x1b,0x5b,0x32,0x7e),
+ [VK_DELETE] = P4(0x1b,0x5b,0x33,0x7e),
[VK_HELP] = P0(),
[VK_LWIN] = P0(),
[VK_RWIN] = P0(),