Skip to content

Exit on Ctrl-C in the curses UI#310

Open
Elias0419 wants to merge 1 commit into
raboof:mainfrom
Elias0419:main
Open

Exit on Ctrl-C in the curses UI#310
Elias0419 wants to merge 1 commit into
raboof:mainfrom
Elias0419:main

Conversation

@Elias0419

Copy link
Copy Markdown

Fixes #84

Pressing Ctrl-C in the curses UI sends keyboard byte 0x03, not SIGINT, preventing the application from exiting. This fixes it by calling quit_cb in ui_tick when getch() returns 3.

@toboil-features

Copy link
Copy Markdown

Much better now. Works.

works.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nethogs doesn't quit normally on ^C

2 participants