-
Notifications
You must be signed in to change notification settings - Fork 182
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
Multiline prompt #154
Comments
One way to do this is to manage a buffer in your main editor event loop and while 'editing' something, you can set the prompt to whatever line # is next and use a blank line or some terminator to stop editing, then have a set of commands to manage the buffer, |
Hey @bamcgill ! Thanks for your suggestion. |
Michael, Here is some of the output so you can see for yourself, how it works. The asterix on the numbers shows the current line, which you can choose by typeing the line number you want to go to.
When youre not editing you can use commands to step up and down the buffer. Heres a snap of what mine does in one implementation of the MLE BARRY>select 1
BARRY>2 BARRY>c/1/2 dom DOM
On 12 Sep 2014, at 13:34, Michael Vetter [email protected] wrote:
|
I encountered similar problem and have following workaround for reference:
After that, the command history is able to correctly show this kind of command. The new problem is, the cursor is not able to reset back to correct position if the history scrolls to this kind of command and continue scrolling to another. |
@bamcgill could i know how could we get transfer from edit to accept or from accept to edit mode. thanks in advance. |
Hello,
You strip all special characters away in setPrompt however I would like to have the possibility to have multiline prompts.
Could we let /n (or do we need %n here?) pass through this or would this create problems on some operating systems?
Is there another way to add multiline prompts?
cheers
The text was updated successfully, but these errors were encountered: