Hi Emmanuel,

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


*      ∇Z←INPUT PROMPT**
**[1] ⍞←PROMPT ◊ Z←⍞**
**[2] ∇**
****
**      INPUT 'MY-Prompt: '**
**MY-Prompt: 42**
**           42**
*
Changing the immediate execution is problematic because
it differs in different situations, for example in multi-line input:

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

Best Regards,
Jürgen


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 :

  * A |Jupyter| kernel, allowing its use in Jupyter notebooks,
  * An |org-babel| driver, allowing its use in Org documents.

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