Hyper: Bracketed-paste mode

Created on 17 Jul 2017  ·  2Comments  ·  Source: vercel/hyper

  • [x] I have searched the issues of this repo and believe that this is not a duplicate

Hi! This is a feature-reqest to support bracketed-paste mode in Hyper.

The basics:

  • Upon receiving DECSET 2004 (ESC+[?2004h), Hyper should enter “bracketed-paste mode”.

    During this, any ⌘V or click-and-drag should …

    1. send ESC+[200~,
    2. send the pasted text,
    3. then send ESC+[201~.
  • Upon receiving DECRST 2004 (ESC+[?2004l), Hyper should then exit this mode, if it was previously in it.

This is supported by xterm, urxvt, gnome-terminal, iTerm 2, Terminal.app, so on and so forth.

Feature Request

Most helpful comment

As an extra reference, right now Hyper is vulnerable to the attack on this proof of concept:
http://thejh.net/misc/website-terminal-copy-paste

The same code with iTerm 2, zsh and oh-my-zsh does not suffer from this vulnerability on my setup.

All 2 comments

As an extra reference, right now Hyper is vulnerable to the attack on this proof of concept:
http://thejh.net/misc/website-terminal-copy-paste

The same code with iTerm 2, zsh and oh-my-zsh does not suffer from this vulnerability on my setup.

Also, lacking this feature (and, perhaps, proper mouse support in Hyper?) may be the cause of problems in modern terminal packages like micro, i.e. https://github.com/zyedidia/micro/issues/733 (as of 2.0.0-11)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthonyettinger picture anthonyettinger  ·  3Comments

dbkaplun picture dbkaplun  ·  3Comments

stan-stripe picture stan-stripe  ·  3Comments

eoinmurray picture eoinmurray  ·  3Comments

yvan-sraka picture yvan-sraka  ·  3Comments