Summary: | On Ctrl+Shift+V it often inserts "![[~200~" before and "~" after the inserted command | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Henning <boredsquirrel> |
Component: | copy-paste | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | agurenko, fanzhuyifan, greg, ninjalj |
Priority: | NOR | ||
Version: | 22.08.3 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Henning
2022-11-30 12:37:02 UTC
This corresponds to "bracketed paste", which is a protocol between applications (including shells) and terminal emulators that allows applications to distinguish pasted text from text typed by the user. See: https://superuser.com/questions/1532688/pasting-required-text-into-terminal-emulator-results-in-200required-text If you are seeing the ESC[200~ and ~ parts, it could be that the terminal emulator and the application are getting different ideas of whether bracketed paste is enabled (e.g. if an editor that sets bracketed paste mode crashes without unsetting it), or maybe, as the superuser post above suggests, Ctrl+V is getting registered before the paste, which shells usually interpret as a request to insert the following input literally. Cannot reproduce. Could you verify if you are accidentally pressing just Ctrl V before the paste? I can sometimes reproduce this but not often. I dont know when this happens but it still did. I dont know what "pressing Ctrl+V before pasting" means, as Ctrl+V should paste I could not reproduce this when pressing "Ctrl+Shift+V" or "Ctrl+V" on Fokus timer, and then pasting into Konsole. But I had this issue some days ago (In reply to Henning from comment #3) > I can sometimes reproduce this but not often. I dont know when this happens > but it still did. > > I dont know what "pressing Ctrl+V before pasting" means, as Ctrl+V should > paste > > I could not reproduce this when pressing "Ctrl+Shift+V" or "Ctrl+V" on Fokus > timer, and then pasting into Konsole. But I had this issue some days ago Well in your original report you mentioned that you were using Ctrl+Shift+V to paste. Ctrl+V does not always mean paste. For example, if you are using bash, this means verbatim insert [0]. Hence, if you are using bash, and you first press Ctrl+V, and then press Ctrl+Shift+V, you will see "![[~200~" before and "~" after the inserted command. And this is intended behavior of bash. So I am closing this as not a bug, since the mentioned behavior seems to be intended behavior of bash. [0] https://superuser.com/questions/421463/why-does-ctrl-v-not-paste-in-bash-linux-shell |