-
Notifications
You must be signed in to change notification settings - Fork 109
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
Intercept the span for user input #79
Comments
The best would be to be able to intercept the characters, parse them, and write out ANSI (which is supported in Another idea is to inject my own |
Hello @amasad, probably the feature I am looking for is there somewhere. From the README I see:
Is it exactly what is between the prompt and the cursor? The problem is I don't see them in the DOM. Maybe I need to do something to enable it? |
I saw that I basically need to replace # Sets the text prompt escaping the html and outputting ANSI
# @arg text: The text to append. Can contain multiple lines.
# @arg escape: Whether the text to write should be html escaped. Optional, defaults to true.
_FillPromptText: (text, escape=true) ->
console.log @$prompt_left
@$prompt_left = @ansi.stylize $(EMPTY_SPAN).text(@$prompt_left.text() + text).html() I get a big |
Oh ok I can't do this, it is not a jQuery DOM element replacement, replaceWith to the rescue :D |
I will solve too this with #81 |
This is solved by 5c8b6d5 |
Hello @amasad a question...
Is there a way to intercept, modify, or customize what is the user input
<span>
?It is exactly between
jqconsole-prompt
andjqconsole-cursor
and I would need to customize it in order to provide real time syntax coloring.Is it difficult to achieve?
The text was updated successfully, but these errors were encountered: