projects
/
termu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
handle ctrl
[termu]
/
src
/
main.c
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);
}