Commit: 6b46e481b70f74a0f0515502262573d377c81a26
Parent: a06b563b61a7d24a15141e317536925bf9be8167
Author: Randy Palamar
Date: Thu, 17 Oct 2024 18:02:50 -0600
send 0x1B when ESC is pressed
I only just noticed because I usually use CTRL+[ instead of actual
ESC since it requires less hand movement.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/vtgl.c b/vtgl.c
@@ -618,6 +618,10 @@ key_callback(GLFWwindow *win, i32 key, i32 sc, i32 act, i32 mods)
switch (ENCODE_KEY(act, 0, key)) {
+ case ENCODE_KEY(GLFW_PRESS, 0, GLFW_KEY_ESCAPE):
+ case ENCODE_KEY(GLFW_REPEAT, 0, GLFW_KEY_ESCAPE):
+ os_child_put_char(t->child, 0x1B);
+ break;
case ENCODE_KEY(GLFW_PRESS, 0, GLFW_KEY_TAB):
case ENCODE_KEY(GLFW_REPEAT, 0, GLFW_KEY_TAB):
os_child_put_char(t->child, '\t');