xterm.js icon indicating copy to clipboard operation
xterm.js copied to clipboard

bash 4.4 should support bracketed-paste mode

Open longshuaige opened this issue 1 year ago • 4 comments

Starting from version 4.4 of Bash, bracketed paste mode is supported. It seems that even Bash 5 does not support it. iTerm2, however, supports this specification.

For reference: https://cirw.in/blog/bracketed-paste

longshuaige avatar Dec 30 '24 12:12 longshuaige

Posted to wrong repo? Or how is this related to xterm.js? If you think bash lacks in this regard, maybe contact bash maintainers?

xterm.js supports bracketed paste for >5 years. If its not working for, plz file a more concrete issue.

jerch avatar Dec 30 '24 14:12 jerch

My point is, with the same version of bash 5.0.17, when I paste multi-line commands, there are brackets in iterm2, but not in xtermjs; if the bash version is a bit higher, such as 5.2, then xtermjs will have bracket decorations.

longshuaige avatar Dec 31 '24 02:12 longshuaige

Can you be a bit more specific on what you have tried? A "works there, but not here" isnt very helpful.

jerch avatar Jan 01 '25 20:01 jerch

@longshuaige xterm.js supports it just fine, the problem would be around how you're launching the bash process which is an issue on your end.

Tyriar avatar Jan 06 '25 13:01 Tyriar