[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the APL prompt ?

From: Dr . Jürgen Sauermann
Subject: Re: Changing the APL prompt ?
Date: Fri, 16 Jun 2023 14:35:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0

Hi Emmanuel,

you can change the ⍞-input prompt but not the immediate execution prompt.
An example (adopted from the IBM APL2 language manual):

[1] ⍞←PROMPT ◊ Z←⍞
[2] ∇
      INPUT 'MY-Prompt: '
MY-Prompt: 42

Changing the immediate execution is problematic because
it differs in different situations, for example in multi-line input:

→      Line One
→      Line Two
→      """
      8 ⎕CR Z
│┌→───────┐ ┌→───────┐│
││Line One│ │Line Two││
│└────────┘ └────────┘│

Best Regards,

On 6/14/23 21:56, Emmanuel Charpentier wrote:

Dear list,

Is there a way to change the APL standard prompt (i. e. 6 spaces at the start of a line) ?

I'd like to develop two interfaces that may, IMHO, improve the usefulness of APL in today's use :

Both are (semi-)trivial to write (thoanks to expect and pexpect), except for recognition of "end-of-output", which might be eased by assigning a predetermined random value to the (final) prompt. QuadEB and Quad-EA come to mind...

Any hint ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]