TEACL is a fork of TECOC created for the purpose of describing diffs in a document being collaboratively edited
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

This function executes a ^A (control-A or caret-A) command.
^Atext^A Types "text" on the terminal. The closing
character must be a control-A.
@^A/text/ Equivilent to ^A except text can be bracketed
with any character, avoids need for second ^A.
#include "zport.h" /* define portability identifiers */
#include "tecoc.h" /* define general identifiers */
#include "defext.h" /* define external global variables */
#include "dchars.h" /* define identifiers for characters */
DEFAULT ExeCtA() /* execute a ^A (control-A) command */
if (FindES(CTRL_A) == FAILURE) { /* find end of string */
DBGFEX(1,DbgFNm,"FAILURE, FindES() failed");
return FAILURE;
TypBuf(ArgPtr, CBfPtr);
CmdMod = '\0'; /* clear modifiers flags */
EStTop = EStBot; /* clear expression stack */
return SUCCESS;