You are not logged in.

#1 2014-01-21 20:28:41

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 326

[SOLVED]strange behavior from pipe to wgetpaste

I noticed today that when I pipe a command into wgetpaste or my sprunge function I see what looks like terminal colour codes

inxi -Fc 1 | wgetpaste
http://bpaste.net/show/170458/

here is another with the same
http://bpaste.net/show/170455/
also one on sprunge
http://sprunge.us/eUhM

I normally use zsh but have tested from bash & I still get the same also I use terminator so I tried urxvt but alas the same happens!

I have no clue as to what is causing this, do you?

thanks for any help & if you need to see a config file please ask & I will try to get it for you.

Last edited by t0m5k1 (2014-01-21 21:55:43)


Aurora R10 (0TYR0X) - Ryzen 7 5800X - 16GB - RX6700XT 12GB - Hyprland (occasionally XFCE) - AOC Q27G3XMN 1440P
EFI Stub Boot
PROUD XLIBRE USER
Linux User: 401820  Steam-Reddit

Offline

#2 2014-01-21 20:46:00

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED]strange behavior from pipe to wgetpaste

That's not strange, it's what I would expect. inxi is using escape sequences to tell the terminal what colors to use. It doesn't know you're piping the output to wgetpaste. If you don't want escape sequences in your output, use "-c0" as in

inxi -Fc0 | wgetpaste

http://bpaste.net/show/170695/

Last edited by 2ManyDogs (2014-01-21 20:49:00)

Offline

#3 2014-01-21 21:55:23

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 326

Re: [SOLVED]strange behavior from pipe to wgetpaste

lol
what a brain fart I had then, I get it now

thanks 2ManyDogs


Aurora R10 (0TYR0X) - Ryzen 7 5800X - 16GB - RX6700XT 12GB - Hyprland (occasionally XFCE) - AOC Q27G3XMN 1440P
EFI Stub Boot
PROUD XLIBRE USER
Linux User: 401820  Steam-Reddit

Offline

Board footer

Powered by FluxBB