c-bata/go-prompt

[Bug] When moving the cursor in the aarch-64 environment, unexpected characters will be printed out of the command line

hcbb199 opened this issue · 2 comments

I used the v0.2.5 version of go-prompt in my project. Moving the cursor in the aarch-64 environment will cause unexpected characters to be printed out of the command line being entered. For example, the ← key will print "?[D" on the command line, and the → key may print "?[C". Is there a way to fix this problem? Looking forward to your reply, thank you very much.

lpxxn commented

on mac terminal,press command+→or command+←
print ?[1;9C ?[1;9D

7yyo commented

I also encountered this problem