🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.xedit-l
Article #706

Re: how to get out of input.

#706
From: Bill Harvey
Date: Thu, 10 Jun 1993 00:10
30 lines
1934 bytes
On Wed, 9 Jun 1993 13:06:38 EDT, Wayne Smith <WTS@MAINE.MAINE.EDU> said:
>I don't think getting out of INPUT mode is directly possible.  If
>someone knows how, please post!

My helpfile for input says:
----------
6.  When you use PF or PA keys in input mode, the editor automatically
    exits from input mode, enters edit mode to execute the subcommand
    associated with the PF or PA key, and returns to input mode.
----------

That tells me that "while the macro is running" XEDIT isn't "in" input
mode.  So there's no problem.

>Macros I've seen or written check for input mode (EXTRACT/INPMODE/),
>push a null line to the stack (to end input), and a line to re-invoke
>the macro, ...  then exit.

Maybe the question is:  "How can the macro insure that XEDIT doesn't
*reenter* input mode when the macro ends?"  Queueing the null line
will take care of that very nicely.

I don't see why you'd want to requeue the macro command.  While the
macro is running, you're "in edit mode."  At least, I can't see
any practical distinctions between the two modes from the macro's
point of view.  Maybe I missed something obvious.

Bill
>cheers,
>Wayne T. Smith, CCP
Technical Details
Message-ID: <XEDIT-L%93060919124691@UGA.CC.UGA.EDU>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!paladin.american.edu!auvm!WUVMD.BITNET!HARVEY

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c92b,1e908e365f046fd2
X-Google-Attributes: gid10c92b,public
X-Google-ArrivalTime: 1993-06-09 16:18:15 PST
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!paladin.american.edu!auvm!WUVMD.BITNET!HARVEY
Return-Path: <@AUVM.AMERICAN.EDU,@UGA.CC.UGA.EDU:owner-xedit-l@UGA.CC.UGA.EDU>
Return-Path: <@UGA.CC.UGA.EDU,@WUVMD.WUSTL.EDU:HARVEY@WUVMD>
Message-ID: <XEDIT-L%93060919124691@UGA.CC.UGA.EDU>
Newsgroups: bit.listserv.xedit-l
Date:         Wed, 9 Jun 1993 18:10:56 CST
Sender:       VM System Editor List <XEDIT-L@UGA.BITNET>
From:         Bill Harvey <HARVEY@WUVMD.BITNET>
Subject:      Re: how to get out of input.
Lines: 30