aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdcurses.patch
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-01-16 14:16:09 -0500
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-01-16 14:16:09 -0500
commit337f3eaa6f2f2124f1551b0f52547f57313ccc09 (patch)
tree1ef9e91c92ed9fceee08bccea41d76d33b86d1bc /src/pdcurses.patch
parent8543925dd9cec8e2e5e39a54b4416b450463f4d1 (diff)
Fixed some Windows terminal version issues and updated to PDCurses 3.9.
`io.popen()` and `os.execute()` change the console mode such that mouse clicks are no longer detected. Make sure it's reset. Also prevent `os.execute()` output from overwriting the window.
Diffstat (limited to 'src/pdcurses.patch')
-rw-r--r--src/pdcurses.patch88
1 files changed, 88 insertions, 0 deletions
diff --git a/src/pdcurses.patch b/src/pdcurses.patch
new file mode 100644
index 00000000..4e1d663f
--- /dev/null
+++ b/src/pdcurses.patch
@@ -0,0 +1,88 @@
+--- a/wincon/pdckbd.c 2018-01-29 22:49:25.000000000 -0500
++++ b/wincon/pdckbd.c 2018-11-10 21:40:57.000000000 -0500
+@@ -102,16 +102,16 @@
+ {PAD0, 0x30, CTL_PAD0, ALT_PAD0, 11 }, /* 45 VK_INSERT */
+ {PADSTOP, 0x2E, CTL_PADSTOP, ALT_PADSTOP,12 }, /* 46 VK_DELETE */
+ {0, 0, 0, 0, 0 }, /* 47 VK_HELP */
+- {0x30, 0x29, 0, ALT_0, 0 }, /* 48 */
+- {0x31, 0x21, 0, ALT_1, 0 }, /* 49 */
+- {0x32, 0x40, 0, ALT_2, 0 }, /* 50 */
+- {0x33, 0x23, 0, ALT_3, 0 }, /* 51 */
+- {0x34, 0x24, 0, ALT_4, 0 }, /* 52 */
+- {0x35, 0x25, 0, ALT_5, 0 }, /* 53 */
+- {0x36, 0x5E, 0, ALT_6, 0 }, /* 54 */
+- {0x37, 0x26, 0, ALT_7, 0 }, /* 55 */
+- {0x38, 0x2A, 0, ALT_8, 0 }, /* 56 */
+- {0x39, 0x28, 0, ALT_9, 0 }, /* 57 */
++ {0x30, 0x29, 0, 0x30, 0 }, /* 48 */
++ {0x31, 0x21, 0, 0x31, 0 }, /* 49 */
++ {0x32, 0x40, 0, 0x32, 0 }, /* 50 */
++ {0x33, 0x23, 0, 0x33, 0 }, /* 51 */
++ {0x34, 0x24, 0, 0x34, 0 }, /* 52 */
++ {0x35, 0x25, 0, 0x35, 0 }, /* 53 */
++ {0x36, 0x5E, 0, 0x36, 0 }, /* 54 */
++ {0x37, 0x26, 0, 0x37, 0 }, /* 55 */
++ {0x38, 0x2A, 0, 0x38, 0 }, /* 56 */
++ {0x39, 0x28, 0, 0x39, 0 }, /* 57 */
+ {0, 0, 0, 0, 0 }, /* 58 */
+ {0, 0, 0, 0, 0 }, /* 59 */
+ {0, 0, 0, 0, 0 }, /* 60 */
+@@ -119,32 +119,32 @@
+ {0, 0, 0, 0, 0 }, /* 62 */
+ {0, 0, 0, 0, 0 }, /* 63 */
+ {0, 0, 0, 0, 0 }, /* 64 */
+- {0x61, 0x41, 0x01, ALT_A, 0 }, /* 65 */
+- {0x62, 0x42, 0x02, ALT_B, 0 }, /* 66 */
+- {0x63, 0x43, 0x03, ALT_C, 0 }, /* 67 */
+- {0x64, 0x44, 0x04, ALT_D, 0 }, /* 68 */
+- {0x65, 0x45, 0x05, ALT_E, 0 }, /* 69 */
+- {0x66, 0x46, 0x06, ALT_F, 0 }, /* 70 */
+- {0x67, 0x47, 0x07, ALT_G, 0 }, /* 71 */
+- {0x68, 0x48, 0x08, ALT_H, 0 }, /* 72 */
+- {0x69, 0x49, 0x09, ALT_I, 0 }, /* 73 */
+- {0x6A, 0x4A, 0x0A, ALT_J, 0 }, /* 74 */
+- {0x6B, 0x4B, 0x0B, ALT_K, 0 }, /* 75 */
+- {0x6C, 0x4C, 0x0C, ALT_L, 0 }, /* 76 */
+- {0x6D, 0x4D, 0x0D, ALT_M, 0 }, /* 77 */
+- {0x6E, 0x4E, 0x0E, ALT_N, 0 }, /* 78 */
+- {0x6F, 0x4F, 0x0F, ALT_O, 0 }, /* 79 */
+- {0x70, 0x50, 0x10, ALT_P, 0 }, /* 80 */
+- {0x71, 0x51, 0x11, ALT_Q, 0 }, /* 81 */
+- {0x72, 0x52, 0x12, ALT_R, 0 }, /* 82 */
+- {0x73, 0x53, 0x13, ALT_S, 0 }, /* 83 */
+- {0x74, 0x54, 0x14, ALT_T, 0 }, /* 84 */
+- {0x75, 0x55, 0x15, ALT_U, 0 }, /* 85 */
+- {0x76, 0x56, 0x16, ALT_V, 0 }, /* 86 */
+- {0x77, 0x57, 0x17, ALT_W, 0 }, /* 87 */
+- {0x78, 0x58, 0x18, ALT_X, 0 }, /* 88 */
+- {0x79, 0x59, 0x19, ALT_Y, 0 }, /* 89 */
+- {0x7A, 0x5A, 0x1A, ALT_Z, 0 }, /* 90 */
++ {0x61, 0x41, 0x01, 0x61, 0 }, /* 65 */
++ {0x62, 0x42, 0x02, 0x62, 0 }, /* 66 */
++ {0x63, 0x43, 0x03, 0x63, 0 }, /* 67 */
++ {0x64, 0x44, 0x04, 0x64, 0 }, /* 68 */
++ {0x65, 0x45, 0x05, 0x65, 0 }, /* 69 */
++ {0x66, 0x46, 0x06, 0x66, 0 }, /* 70 */
++ {0x67, 0x47, 0x07, 0x67, 0 }, /* 71 */
++ {0x68, 0x48, 0x08, 0x68, 0 }, /* 72 */
++ {0x69, 0x49, 0x09, 0x69, 0 }, /* 73 */
++ {0x6A, 0x4A, 0x0A, 0x6A, 0 }, /* 74 */
++ {0x6B, 0x4B, 0x0B, 0x6B, 0 }, /* 75 */
++ {0x6C, 0x4C, 0x0C, 0x6C, 0 }, /* 76 */
++ {0x6D, 0x4D, 0x0D, 0x6D, 0 }, /* 77 */
++ {0x6E, 0x4E, 0x0E, 0x6E, 0 }, /* 78 */
++ {0x6F, 0x4F, 0x0F, 0x6F, 0 }, /* 79 */
++ {0x70, 0x50, 0x10, 0x70, 0 }, /* 80 */
++ {0x71, 0x51, 0x11, 0x71, 0 }, /* 81 */
++ {0x72, 0x52, 0x12, 0x72, 0 }, /* 82 */
++ {0x73, 0x53, 0x13, 0x73, 0 }, /* 83 */
++ {0x74, 0x54, 0x14, 0x74, 0 }, /* 84 */
++ {0x75, 0x55, 0x15, 0x75, 0 }, /* 85 */
++ {0x76, 0x56, 0x16, 0x76, 0 }, /* 86 */
++ {0x77, 0x57, 0x17, 0x77, 0 }, /* 87 */
++ {0x78, 0x58, 0x18, 0x78, 0 }, /* 88 */
++ {0x79, 0x59, 0x19, 0x79, 0 }, /* 89 */
++ {0x7A, 0x5A, 0x1A, 0x7A, 0 }, /* 90 */
+ {0, 0, 0, 0, 0 }, /* 91 VK_LWIN */
+ {0, 0, 0, 0, 0 }, /* 92 VK_RWIN */
+ {0, 0, 0, 0, 0 }, /* 93 VK_APPS */