Skip to content

Commit

Permalink
Explicitly disable bracketed paste mode in test sessions
Browse files Browse the repository at this point in the history
Since Debian 11 (bash 5.1) bracketed paste mode is turned on by default.
This leads to wrapping each command output into '\e[?2004l' and '\e[?2004h'
(disable bracketed paste, print to stdout, enable bracketed paste).

Since we trust any stdin input in our test suite, there is no reason to
leave this feature on and to manually process garbled output.

Links:
    http://cirw.in/blog/bracketed-paste
    syl20bnr/spacemacs#3035
  • Loading branch information
sio committed Oct 26, 2020
1 parent 458c369 commit 04137f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class BashSession:

ENCODING = 'utf-8'
STARTUP = [
"bind 'set enable-bracketed-paste off'",
"bind 'set bell-style none'",
]
ENV_UNSET = [
Expand Down

0 comments on commit 04137f4

Please sign in to comment.