Make Ctrl-C clear line and re-prompt in REPL instead of exiting

Use sigsetjmp/siglongjmp to catch SIGINT during readline/fgets input
and jump back to the REPL loop with a fresh prompt. Running Lua code
still gets interrupted via the existing laction/lstop mechanism.

Fixes #11.
This commit is contained in:
Cormac Shannon
2026-02-28 23:34:22 +00:00
parent 47abb04921
commit af8300aa40
2 changed files with 28 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
# Issue #11 — Ctrl-C REPL behaviour
**Status:** open
**Status:** resolved
## Problem