contour
contour copied to clipboard
Copied text gets pasted twice
Contour Terminal version
Contour Terminal Emulator 0.5.1
Installer source
something else (please specify below)
Operating System
Linux artix-dinit 6.11.2-artix1-1 #1 SMP PREEMPT_DYNAMIC Sat, 05 Oct 2024 05:12:42 +0000 x86_64 GNU/Linux
Architecture
x86-64
Other Software
n/a
Steps to reproduce
- Copy text from firefox (also tested contour terminal)
- Paste on terminal
- Observe the bug
Expected Behavior
The text to be pasted only once.
Actual Behavior
The text gets pasted twice
Additional notes
This is a fresh artix-dinit install with Hyprland.
Hey @RafTeog
Many thanks for your interest in Contour. I sadly cannot reproduce this just yet. Would you mind sharing the configuration you used?
Hey @christianparpart thanks for the reply! I acutally installed and used as it is. The default config.
Hey @christianparpart thanks for the reply! I acutally installed and used as it is. The default config.
Maybe you can share output of contour debug pty.input when this is happening ?
Hey, thx for the reply. So, I basically run the command you provided, and I noticed it opens a terminal window. Cool, then I copied the <Maybe you can share output of contour debug pty.input when this is happening ?> from your message here. When I pasted in a new terminal window I opened, as it is doing, it pasted twice. But, the previous one, that was still returning
< master received: "\e[A\r\e[01;36m[raf@artix-dinit\e[01;37m \x7e\e[01;36m]$\e[00m Maybe you can share output of contour debug pty.input when this is happening ?\e[7mMaybe you can share output of contour debug pty.input when \e[27m\e[7mt\e[27m\e[7mhis is happening ?\e[27m"
The second paste comes in selected even.
Does it happen only for contour? Contour receive this text twice, so we can not ignore it, as for why this is happening most likely wm can provide some debug info
Hey, in firefox itself, meaning when I paste anything on firefox (url or inside a website, for instance), it does not happen. I will try on another apps I have. It is a brand new instalation, so I will take my time to install something. If you want to suggest apps, its all cool, as long as it is on the world/galaxy/aur repositories. The artix system I installed is for learning purposes only. The intent here is to help and learn, feel free to ask :)
It might also be a Hyprland thing. I'm having a Hyprland around that I could try to repro it. Many thanks for your input so far, @RafTeog :)
Just trying contour 0.5.1.7247 on ARM M3 macOS 14.6.1 and found shift+control+v to paste gives me double input as well. Nothing configured, not even installed - running directly from the DMG disk image.
From the Apple terminal app, trying to paste word contour into bash in contour:
$ cd /Volumes/Contour-0.5.1.7247-Darwin/contour.app/Contents/MacOS
$ ./contour debug pty.input # and copy "contour" to the clipboard
[2024-11-06 23:42:08.866139] [pty.input] master received: "bash-3.2$ "
[2024-11-06 23:42:08.881289] [pty.input] master received: "\r\e[Kbash-3.2$ "
[2024-11-06 23:42:09.022017] [pty.input] master received: "\r\e[Kbash-3.2$ "
[2024-11-06 23:42:11.377417] [pty.input] master received: "co"
[2024-11-06 23:42:11.377463] [pty.input] master received: "ntour"
[2024-11-06 23:42:11.377491] [pty.input] master received: "co"
[2024-11-06 23:42:11.377512] [pty.input] master received: "ntour"
You do seem to be getting the input twice, no idea why.
(command+v didn't paste within contour by default which was surprising but I've not attempt to configure anything yet)
Hi @peterjc, i can repro this, but this is only due to default config where we have same entries, this will be fixed in next release
Hi @RafTeog does this behavior persist? we fixed issue with default config so it should not appear again for new users but you have to manually delete repeating entry in your config file
Hey, sorry for the delay. But great news! I had to delete the partitions, so I will have to reinstall artix and give it another try. Thanks again and glad I could help improve things :)
I found this issue because I'm encountering it as well. I can confirm that it is not a Hyprland issue (as suggested above) and it is unrelated to wayland since I'm using i3 on X11 and i've got xclip 0-13.6 installed. The buffer is pasted twice and the second set of text is selected. It should also be noted that Contour does not recognize the ctrl+Shift+C binding, but it does recognize ctrl+Shift+V.
Can you please check your config file @mortis-est ?
you can see in your config file two entries for the PasteClipboard action, that is why you get text pasted twice, and no keybinding for C-S-c to copy selection