projects
/
termu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8ebac0
)
handle ctrl
author
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 2 Nov 2023 23:00:42 +0000
(
01:00
+0200)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Thu, 2 Nov 2023 23:00:42 +0000
(
01:00
+0200)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
81c0f4d
..
9f986c4
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-211,6
+211,10
@@
static void keypress(unsigned char key, int x, int y)
}
}
+ if(mod & GLUT_ACTIVE_CTRL) {
+ key &= 0x1f;
+ }
+
write(pty, &key, 1);
}