Package: wl-clipboard
Version: 2.1.0-0.1+b1
Severity: wishlist
Tags: upstream
X-Debbugs-Cc: [email protected]

ANSI color codes, boldfacing, and various other control codes for
linefeeds is being captured literally with wl-copy and faithfully
reproduced when pasting. This behaviour deviates from copy/paste using
a mouse. If the terminal is showing text that is colored and
formatted, and the mouse is used to select a string of text which is
then pasted into emacs or a pastebin form, the control characters are
stripped out uncolored raw text is pasted. The wl-copy tool should be
able to simulate that.

This can easily be reproduced using the “script” command to capture a
typescript, as follows:

  $ script
  $ [do anything arbitrary here, such as “man wl-clipboard”]
  $ <control-d>
  $ file typescript 
  typescript: Unicode text, UTF-8 text, with CRLF, CR, LF line terminators, 
with escape sequences, with overstriking
  $ wl-copy -p < typescript

When pasting into a place where raw text is expected, control codes
appear. Whereas if you use a mouse to do the copy, the paste is raw
text. So it would be useful if wl-copy had an option to simulate the
mouse action.

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 
'stable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-21-amd64 (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wl-clipboard depends on:
ii  libc6               2.36-9+deb12u7
ii  libwayland-client0  1.21.0-1

Versions of packages wl-clipboard recommends:
ii  xdg-utils  1.1.3-4.1

wl-clipboard suggests no packages.

-- no debconf information

Reply via email to