Skip to content

Indent behaviour on paste is different in terminal and AWS CloudShell #1908

Open
@iakov-aws

Description

@iakov-aws

Hello,

I notice a difference in behavior of following code in terminal win/macos/linux vs AWS CloudShell.

from prompt_toolkit import prompt
answer = prompt( "Multiline input: >\", multiline=True)
print(answer)

In AWS CloudShell the text pasted is
image

In other terminals paste works as expected
image

As per doc multi-line activates indent mode and it works fine. But on AWS CloudShell paste works combined with indent but with other terminals it works some other way not indenting the pasted input.

Most likely prompt-toolkit detects paste action but in AWS CloudShell the paste mechanism is not detectable(?).

Is there a way to deactivate auto indent on multi-line mode any other way to make paste work on AWS CloudShell ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions