-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
Description
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:
Line 414 in be7f1ab
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?