Skip to content

Disabling bracketed paste mode #143

@zmitchell

Description

@zmitchell

When integrating rexpect into some of our tests I ran into an issue where the escape codes for bracketed paste mode were present in the output. This naturally broke the tests until I figured out the issue. I found that adding bind 'set enable-bracketed-paste off' to the prompt-setting command here solves the problem:

let ps1 = format!("PS1='{new_prompt}'");

(I'm not sure it's relevant, but in my fork that whole command is actually PS1="~~~~" && unset PROMPT_COMMAND && bind 'set enable-bracketed-paste off').

Is this something you'd like to see upstreamed, or are there legitimate cases where disabling this is undesired?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions