Skip to content

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

@lukemwillis

Description

@lukemwillis

Is there an existing issue for this?

  • I have searched the existing issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtask

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions