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 committed 2026-02-28 23:35:30 +00:00
1 parent 47abb04921
commit af8300aa40
2 files changed
+28 -2

No files matched your search

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