[go: nahoru, domu]

Skip to content
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

Errors and bugs while entering text #1

Closed
m4l3vich opened this issue Oct 4, 2018 · 3 comments
Closed

Errors and bugs while entering text #1

m4l3vich opened this issue Oct 4, 2018 · 3 comments

Comments

@m4l3vich
Copy link
Contributor
m4l3vich commented Oct 4, 2018

Entering text causes error:
image

At this line (local-echo.js formatted by Chrome devtools):
image

Using this code:
image
And some Vue.js with Electron

@m4l3vich
Copy link
Contributor Author
m4l3vich commented Oct 4, 2018

That's what debugger shows:
image
As you can see, term is defined, but only under this

@m4l3vich
Copy link
Contributor Author
m4l3vich commented Oct 4, 2018

Also found that if you use colors (like \u001b[36;1m) in prompt, cursor position becomes incorrect
image
image

@m4l3vich m4l3vich changed the title Errors while trying to enter text Errors and bugs while entering text Oct 4, 2018
@m4l3vich
Copy link
Contributor Author
m4l3vich commented Oct 4, 2018

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.

wavesoft added a commit that referenced this issue Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant