Commit 3a41ba1
committed
refactor: refactor Ctrl+C handler into bye function
- Add a new `bye` function to handle Ctrl+C exit with "Bye!" message
- Replace inline Ctrl+C handler with the new `bye` function
Signed-off-by: wecoding <wecoding@yeah.net>1 parent 19a584b commit 3a41ba1
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments