commit 15e1b108be37e22089affc9e1165a3834c9259b7 from: Omar Polo date: Tue Mar 02 18:52:23 2021 UTC use raw mode in raw mode, C-s, C-q, C-c etc are passed as-is, while in cooked mode (the one cbreak gives us) they retain their usual meaning. commit - 0972d8b2a08f2c28e86b3cc310f9eac1be74766d commit + 15e1b108be37e22089affc9e1165a3834c9259b7 blob - ff93bcfbd3dbbff0d6f93cd7bbe960dfa6329146 blob + 7a68d17396de5e737c5f63fe556fe0730022f43b --- telescope.c +++ telescope.c @@ -240,7 +240,6 @@ main(void) int imsg_fds[2]; signal(SIGCHLD, SIG_IGN); - signal(SIGINT, SIG_IGN); if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, imsg_fds) == -1) err(1, "socketpair"); blob - 136c39737945834a76efea9baf7eec152adafe25 blob + 0a00d3b8723a3b9f23ea154ddf335499633adcec --- ui.c +++ ui.c @@ -240,7 +240,7 @@ ui_init(void) setlocale(LC_ALL, ""); initscr(); - cbreak(); + raw(); noecho(); nonl();