blob: bfd0a02fecb35a759726e75c7a8997105f214cd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
int main() {
char shift_state;
shift_state = 6;
if (ioctl(0, TIOCLINUX, &shift_state) == -1)
err(1, "could not get shift state");
return !shift_state;
}
|