fzyzcjy / dart_interactive

REPL (interactive shell) for Dart, supporting 3rd party packages, hot reload, and full grammar
https://github.com/fzyzcjy/dart_interactive
MIT License
221 stars 13 forks source link

When Backspace key is pressed on the terminal it doesn't remove the characters and give #81

Closed ghost closed 1 year ago

ghost commented 1 year ago

In the very first line I miss spelled the during importing the library so I pressed the <- (left arrow) key of keyboard it didn't respond to it and the cursor didn't move from its place.

In order to fix it I pressed backspace key multiple times but it didn't delete the previous characters and rather than that just moved the cursor towards left side.

In the second import statement I typed everything correctly (no backspace) and pressed enter it worked.

Below is the screen sort of my terminal

vlcsnap-2023-04-08-10h48m33s809

Platform information

welcome[bot] commented 1 year ago

Hi! Thanks for opening your first issue here! :smile:

fzyzcjy commented 1 year ago

Hmm is it a bug of https://github.com/fzyzcjy/dart_interactive/blob/23159df0f9d6598885a19dc1ec4c26a6f2442797/packages/interactive/pubspec.yaml#L12?

mingpepe commented 1 year ago

Hmm is it a bug of

https://github.com/fzyzcjy/dart_interactive/blob/23159df0f9d6598885a19dc1ec4c26a6f2442797/packages/interactive/pubspec.yaml#L12

?

It's a limitation on Windows for arrow key. https://github.com/jathak/cli_repl/issues/12 Can use Ctrl-B and Ctrl-F to replace left and right arrow key.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.