Skip to content

Commit b98a4c9

Browse files
authored
Merge pull request #10 from rota1001/disable-flow-control-with-flag
Enable Control+Q capture by setting input mode
2 parents 61ee712 + 3c770ed commit b98a4c9

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

README.md

-5
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ This utility offers the following functionality:
3636
- `Ctrl + P`: Toggle pause/resume of the game board display
3737
- `Ctrl + Q`: Terminate all tic-tac-toe games running in kernel space
3838

39-
In terminal environments that use flow control (particularly bash), you must enable the Ctrl+Q shortcut. Run the following command before starting xo-user:
40-
```
41-
$ stty start '^-' stop '^-'
42-
```
43-
4439
Simply run the command below after the kernel module is loaded:
4540
```
4641
$ sudo ./xo-user

xo-user.c

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ static void raw_mode_enable(void)
4646
tcgetattr(STDIN_FILENO, &orig_termios);
4747
atexit(raw_mode_disable);
4848
struct termios raw = orig_termios;
49+
raw.c_iflag &= ~IXON;
4950
raw.c_lflag &= ~(ECHO | ICANON);
5051
tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
5152
}

0 commit comments

Comments
 (0)