PbreakEvalOnSigint
Bun

property

repl.ReplOptions.breakEvalOnSigint

breakEvalOnSigint?: boolean

Stop evaluating the current piece of code when SIGINT is received, i.e. Ctrl+C is pressed. This cannot be used together with a custom eval function.