Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: multi-line input in interactive mode #69

Open
xaverdh opened this issue Sep 26, 2017 · 1 comment
Open

Feature request: multi-line input in interactive mode #69

xaverdh opened this issue Sep 26, 2017 · 1 comment

Comments

@xaverdh
Copy link

xaverdh commented Sep 26, 2017

A nice to have feature would be multi-line input in interactive mode.
From the api perspective I envision passing a function as part of the configuration.
This function gets called with the input (and possibly some meta information, such as the position of the cursor) every time the user types something at the prompt and then returns a status, indicating whether the input should be considered complete (or partial).
This would for example allow implementing a multi-line mode where the input is accepted when it parses successfully or when a special key sequence is encountered (this would possibly require passing control characters to the envisioned function).

@judah
Copy link
Collaborator

judah commented Jan 21, 2019

For another possible API, see the description of the CoffeScript REPL here: purescript/purescript#934

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants