erg icon indicating copy to clipboard operation
erg copied to clipboard

Arrow keys are not working in REPL

Open ktny opened this issue 1 year ago • 1 comments

Left arrow key would be typed ^[[D in REPL. The other arrow keys are the same, so I cannot enter previous input value with up arrow key.

❯ erg
Starting the REPL server...
Connecting to the REPL server...
Retrying to connect to the REPL server...
Erg interpreter 0.2.2 (tags/?:, 2022/08/14 20:25:00) on x86_64/linux
>>> print!()^[[D

erg v0.2.2 installed on wsl2 on windows11 via rustup-installed cargo 1.62.1

ktny avatar Aug 16 '22 00:08 ktny

I am aware of the problem as well. It appears that Erg need to handle the input. That can be somewhat tedious. It looks like termion crate could be used to solve this issue. I will use this to solve the problem for a while.

mtshiba avatar Aug 16 '22 03:08 mtshiba