1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-30 00:53:15 +00:00

Turn off raw mode in shell on ctrl-C.

This commit is contained in:
Calvin Rose 2021-11-18 19:58:52 -06:00
parent c7ca26e9c7
commit af946f398e

View File

@ -757,6 +757,7 @@ static int line() {
kleft(); kleft();
break; break;
case 3: /* ctrl-c */ case 3: /* ctrl-c */
norawmode();
kill(getpid(), SIGINT); kill(getpid(), SIGINT);
/* fallthrough */ /* fallthrough */
case 17: /* ctrl-q */ case 17: /* ctrl-q */