Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1198008 > unrolled thread

Bug#1071496: wl-clipboard: An option to strip out ANSI color and bold contol characters needed

Started byManny <debbug.wl-clipboard@sideload.33mail.com>
First post2024-05-20 10:00 +0200
Last post2024-05-20 10:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#1071496: wl-clipboard: An option to strip out ANSI color and bold contol characters needed Manny <debbug.wl-clipboard@sideload.33mail.com> - 2024-05-20 10:00 +0200

#1198008 — Bug#1071496: wl-clipboard: An option to strip out ANSI color and bold contol characters needed

FromManny <debbug.wl-clipboard@sideload.33mail.com>
Date2024-05-20 10:00 +0200
SubjectBug#1071496: wl-clipboard: An option to strip out ANSI color and bold contol characters needed
Message-ID<IG665-eAm4-1@gated-at.bofh.it>
Package: wl-clipboard
Version: 2.1.0-0.1+b1
Severity: wishlist
Tags: upstream
X-Debbugs-Cc: debbug.wl-clipboard@sideload.33mail.com

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

[toc] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web