koinos / koinos-cli

A command line utility used for key management and to interact with the Koinos blockchain.
Other
8 stars 7 forks source link

[BUG]: Interactive CLI does not handle pasted newlines well #124

Open lukemwillis opened 1 year ago

lukemwillis commented 1 year ago

Is there an existing issue for this?

Current behavior

Pasting multiline content into the interactive prompt makes the prompt disappear and you only see the last line of content. Backspacing the content reveals that it's all there, but you don't see the prompt again until you get to the top line.

Expected behavior

Pasting multiline content should keep the prompt visible along with each line of content. Same as your typical command prompt.

Steps to reproduce

  1. Open terminal
  2. run koinos-cli in interactive mode
  3. copy multiple lines of text into your clipboard (from anywhere)
  4. paste into koinos-cli

Command prompt should disappear and you only see the last line of what you pasted.

  1. backspace until you hit the top line and see the prompt again.

Environment

- OS: Mac OS 11.6.8
- Terminal: zsh 5.8 (x86_64-apple-darwin20.0)

Anything else?

No response

koinos-ci commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

sgerbino commented 1 year ago

This is probably an issue with the underlying library, we could investigate using a different one when this becomes a priority.