samschott / maestral

Open-source Dropbox client for macOS and Linux
https://maestral.app
MIT License
3.09k stars 65 forks source link

ANSI escape sequences prevent typing in CLI #967

Open UInt2048 opened 1 year ago

UInt2048 commented 1 year ago

Describe the bug I attempted to authorize manually due to #965. However, as I type in the authorization code (manually), an ANSI escape sequence appears on the screen, and I’m unable to type further characters, hit enter, etc.

B044AC93-B00F-45F3-B7A5-81762B486A0D

To Reproduce

  1. Enter maestral auth link in a terminal
  2. Select either option
  3. Enter an authorization code (or anything long enough, 1234567890 happened to trigger it in the above photo)

Expected behaviour Maestral doesn’t prevent me from entering this code

System: Still the same as #965

Additional context Still the same as #965

I did try uninstalling Maestral and reinstalling in a venv created like python3 -m venv --system-site-packages maestral-venv but it did not affect the reproduction of the bug

ddebin commented 2 months ago

Getting the same problem with iTerm, I solved the problem by "pasting slowly" (it's an option in Edit/Paste Special/Paste Slowly) the copied auth code.