[Git-commits] [grml/grml-etc-core] 1d7346: Disable bracketed paste mode for dumb terminals

Michael Prokop noreply at github.com
Tue Feb 12 15:49:39 CET 2019


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-etc-core
  Commit: 1d7346704e49fa779ffccfc2eda2dc12e1937a6f
      https://github.com/grml/grml-etc-core/commit/1d7346704e49fa779ffccfc2eda2dc12e1937a6f
  Author: Sebastian Boehm <sebastian at sometimesfood.org>
  Date:   2019-01-14 (Mon, 14 Jan 2019)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  Disable bracketed paste mode for dumb terminals


  Commit: b6488036e4c060e7f186212eeed148c2996abc2a
      https://github.com/grml/grml-etc-core/commit/b6488036e4c060e7f186212eeed148c2996abc2a
  Author: Michael Prokop <mika at grml.org>
  Date:   2019-02-12 (Tue, 12 Feb 2019)

  Changed paths:
    M etc/zsh/zshrc

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/github/pr/73'

C/P from https://github.com/grml/grml-etc-core/pull/73:

| Starting with zsh version 5.1, ZLE began supporting "bracketed paste mode".
|
| Currently, even on dumb terminals, ZLE sometimes emits the escape sequence
| "[?2004h" after the prompt if bracketed paste mode is not disabled. This
| prevents various tools that try to detect a shell prompt (such as Emacs TRAMP)
| from doing so successfully. (The shell prompt effectively becomes user at host ~ %
| �[?2004h – which typically will not be matched by prompt detecting regexps,
| thereby breaking Emacs TRAMP for target hosts that use the Grml zsh config and
| zsh ≥5.1.)
|
| Since most "dumb" terminals do not have bracketed paste capabilities anyway,
| this pull request changes the Grml zsh config to disable bracketed paste mode
| for "dumb" terminals.


Compare: https://github.com/grml/grml-etc-core/compare/9b0167b4b6fd...b6488036e4c0


More information about the Git-commits mailing list