Commit 58598a8
committed
Enable ISIG control mode of termios after exit
The ISIG control mode is disabled in capture_keyboard_input(), but
it is not reset in reset_keyboard_input(). This inconsistency causes
default keyboard signal malfunctions (e.g., SIGINT from CTRL+C) after
exit. To fix this, the termios control flag is encapsulated in a
macro, TERMIOS_C_CFLAG and used in both capture_keyboard_input() and
reset_keyboard_input().1 parent 333254e commit 58598a8
1 file changed
+19
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
13 | 30 | | |
14 | 31 | | |
15 | 32 | | |
| |||
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
22 | | - | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
31 | 48 | | |
32 | 49 | | |
33 | 50 | | |
34 | | - | |
| 51 | + | |
35 | 52 | | |
36 | 53 | | |
37 | 54 | | |
| |||
0 commit comments