Closed m4l3vich closed 6 years ago
That's what debugger shows:
As you can see, term
is defined, but only under this
Also found that if you use colors (like \u001b[36;1m) in prompt, cursor position becomes incorrect
This can be fixed by inserting .replace(/\033\[[0-9;]*m/, '')
somewhere where the cursor position is being calculated, but I'm not sure where exactly to insert it.
Entering text causes error:
At this line (local-echo.js formatted by Chrome devtools):
Using this code: And some Vue.js with Electron