I successfully installed the terminal on a test page and want to highlight parentheses that match, something like this:
http://profgra.org/lycee/calcul.html
So I already have a working solution that I now need to hook to the terminal.
My first idea was to see if I could grab the term content, using the keypress
option:
keypress: function(e) {
console.log(term.html());
}
But the content always lacks the last letter typed. Any idea to fix this? Or any other direction to try?
Thanks reading.