Hood Chatham
Hood Chatham
I implemented a solution for this by setting the prompt to be empty and using my own margin area to include the prompts. I use a `MutationObserver` to update my...
Well it may be over engineered, but I am imitating existing repls. All input lines are forced to be indented equally, output lines are not indented. This is to allow...
Update: this only happens when echo_newline is included. Complete MWE: ```html Test Disable Enter let term = $("body").terminal( (command) => {}, { keypress : function(event) { if(event.key === "Enter"){ event.preventDefault();...
Okay, it works if after creating the terminal I say: ```js term.keymap("ENTER", function(event){ event.preventDefault(); event.stopPropagation(); }); ```
> To prevent the key you need to `return false`. I did that though. I think this is actually a bug in `echo_newline`, if you remove `echo_newline` script the enter...
I think for my purposes this is okay, I can just say: ```javascript term.keymap("ENTER", function(event){ event.preventDefault(); event.stopPropagation(); }); ``` (I think if I use `term.push` / `term.pop` I have to...
Okay that makes all sense. Thanks for the clear and detailed explanation! What really got me confused was that I was trying to return `false` from `keydown` to block the...
I'm still confused about one thing. Why do these two code examples behave differently with `echo_newline`: 1. Enter still does something unexpectedly ```js let term = $("body").terminal( (command) => {},...
I think my PR will handle bullets 1 and 2 in the TODO here.
Python3.11.0b1 it is then. > Let me know if you need any pointers in order to add the CI job? Will do, still working on getting the tests working in...