From 86fbf212de71a83e7bb4d83a4b33e54bed52dff9 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 28 Jul 2025 02:41:33 +0300 Subject: `ED&2` can be used to access the program termination flag now * `0,2ED` is roughly equivalent to `-EX` * `ED&2` can be used to query whether EX has been run. This is useful if macros can run EX. * `2,0ED` could be used to cancel the effect of EX. * But the real motivation is for implementing a REPL script. --- src/sciteco.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sciteco.h') diff --git a/src/sciteco.h b/src/sciteco.h index 40a3548..cc43368 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -87,6 +87,7 @@ teco_is_failure(teco_bool_t x) * This is not a bitfield, since it is set from SciTECO. */ enum { + TECO_ED_EXIT = (1 << 1), TECO_ED_DEFAULT_ANSI = (1 << 2), TECO_ED_AUTOCASEFOLD = (1 << 3), TECO_ED_AUTOEOL = (1 << 4), -- cgit v1.2.3