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

Space button is deleting characters of the commandline input. #54

Closed
yharsh opened this issue Jan 12, 2015 · 0 comments
Closed

Space button is deleting characters of the commandline input. #54

yharsh opened this issue Jan 12, 2015 · 0 comments

Comments

@yharsh
Copy link

yharsh commented Jan 12, 2015

Hi
I am using term.js for supporting web based terminal, And it very good. But there is one issue related to space character. Pressing space is deleting character on the left of first user inserted space.

How to reproduce:

Character '|' denotes current cursor position.

yharsh@github>Hi my name is harsh|
yharsh@github>Hi my |na me is harsh -----> First space is inserted between characters 'a' and 'm' of word "name"
Now position the cursor to the left of this space and press space. Say I position cursor next to 'n' and press space button. Now it will delete characters 'a' and ' ', 'm', 'e' and so on on consecutive press.
yharsh@github>Hi my n|a me is harsh ------> Cursor is next to 'n'.
Press space button
yharsh@github>Hi my n | me is harsh -------> Space character has overwritten character 'a'.
Press space button
yharsh@github>Hi my n |me is harsh -------> Space character has overwritten character ' '.
Press space button
yharsh@github>Hi my n e is harsh -------> Space character has overwritten character 'm'.

Any help/fix in this regards is much appreciated.

Thanks
Harsh Yadav

@yharsh yharsh closed this as completed Mar 4, 2015
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