diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-02-16 00:44:33 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2016-02-16 00:44:33 +0100 |
commit | 4db7f46808502e3a667d442d7a77f83f4593650b (patch) | |
tree | baab2f9d0a6194960f3e29694cf5e23699ea64d2 /doc/sciteco.7.template | |
parent | 51aaeb062bf8f7e032b591832acd19901fca94c0 (diff) | |
download | sciteco-4db7f46808502e3a667d442d7a77f83f4593650b.tar.gz |
implemented ^C command
* acts like exit(3) -- ie. the program is terminated
immediately but the quit hook (aka SciTECO's atexit()
handlers) will still run.
* for "compatibility" with classic TECOs.
Can also be used as a shorter variant of "-EX$$"
but working from every macro level.
* disallowed in interactive mode to avoid typing it
accidentally.
Diffstat (limited to 'doc/sciteco.7.template')
-rw-r--r-- | doc/sciteco.7.template | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template index 71bc501..eab26e5 100644 --- a/doc/sciteco.7.template +++ b/doc/sciteco.7.template @@ -523,7 +523,8 @@ pressing \fB^C\fP on the attached console or by explicitly sending it. If \*(ST is not busy, .B ^C -is self-inserting and might be used as a regular command. +is self-inserting and might be typed as part of regular commands. +The \fB^C\fP command itself is disallowed in interactive mode, though. T} .TE . @@ -1034,13 +1035,15 @@ This is \*(ST's equivalent of handlers. The hook is not run when some command fails, but only when \*(ST exits normally. -This is the case when a macro specified via -\fB--eval\fP reaches the end, when a munged -file calls \fBEX\fP or when \fBEX\fP has been -called in interactive mode. -Note however that \fBEX\fP is never executed -immediately, but only requests program termination -(so it can still be rubbed out). +This is the case when control in a macro specified via +\fB--eval\fP reaches the end, or otherwise returns +(using \fB^C\fP or by returning from the top-level +macro via \fB$$\fP). +Similarily the hook is executed when a munged +file calls \fB^C\fP or \fBEX\fP has been called before +the top-level macro returns. +It is also called after the interactive mode has shut down +by calling \fBEX$$\fP. The \fBquit\fP hook will always run in \fIbatch\fP mode (after any user interface has shut down). Errors in the hook's execution will not prevent |