Redesign prompt system: revert #09, use standard _PROMPT (issue #21)

Revert the bespoke __prompt()/__prompt2() function mechanism from issue
#09 and return to stock Lua's _PROMPT/_PROMPT2 globals (which already
support dynamic prompts via __tostring metatables). Set default
_PROMPT = "lush> " in doREPL if not already defined by config.
This commit is contained in:
Cormac Shannon
2026-03-04 23:53:04 +00:00
parent 9e75175c79
commit b3aa1d9c63
4 changed files with 38 additions and 118 deletions

View File

@@ -1,6 +1,6 @@
# 21 — Prompt redesign
**Status:** open
**Status:** done
Reconsider the prompt system. Some observations: