Disable blinking cursor on mouseleave #900
-
I am having a lot of fun with the terminal, it works great together with pyodide to embed a python console in a course I develop. I tried to make sense of /css/jquery.terminal.css but the animations to achieve the blinking cursor are way over my head. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I think that would you need is to disable the terminal on the mouse out and enable it on hover. Here is the code you can use: $(document).on('mouseover', '.terminal', (e) => {
$(e.currentTarget).terminal().enable();
}).on('mouseout', '.terminal', (e) => {
$(e.currentTarget).terminal().disable();
}); And here is a demo. |
Beta Was this translation helpful? Give feedback.
--animation: terminal-none
disables animation, not the cursor, I'm not sure how the cursor can be invisible. Do you have a reproduction that shows that cursor disappear?I think that would you need is to disable the terminal on the mouse out and enable it on hover.
Here is the code you can use:
And here is a demo.