- Jul
- 532
- 10
I've seen a lot of other complaints about this, but yea.
It's not a WT issue.
It's a TCC issue.
It doesn't happen in WT under CMD.EXE with the exact same commands.
It doesn't happen in WT under PowerShell with the exact same commands
It DOES happen in WT under TCC with the exact same commands
It DOES happens in TCC without WT.
...and only for screen rendering, not when sending to a file.
The working example i used today to prove this to myself was a simple:
Simply hit up-arrow and enter and you can see ansi leak out 1 out of 8 or so tries.
I set up a script to do this 1000 times to temporary files. They all had the same CRC32. This only happens in screen rendering, not piping.
I'm not going to share my personal.htm file from my dropbox ;), but here are the matching lines, in case that's somehow important (I do not believe it is):
And in this case, the glitch was usually 2-4 leaking ansi charcters at the end of the first highlighted "HOME THEATRE"
Seems that EVERY shell i throw this at does it consistently EXCEPT tcc
and i've noticed this about TCC for a good 15 years now
It's not a grep-specific thing, either. Leaking ansi has happened a lot, regardless of the source of ANSI. It's not as bad as it used to be (50% leak rate on some commands), but it's still bad (15% leak rate on a lot of commands, i have to see garbage on my screen every day randomly.)
It's not a WT issue.
It's a TCC issue.
It doesn't happen in WT under CMD.EXE with the exact same commands.
It doesn't happen in WT under PowerShell with the exact same commands
It DOES happen in WT under TCC with the exact same commands
It DOES happens in TCC without WT.
...and only for screen rendering, not when sending to a file.
The working example i used today to prove this to myself was a simple:
Code:
unset /q grep_color
unset /q grep_colors
type c:\dropbox\personal.htm | c:\cygwin\bin\grep.exe --color=always HOME.THEATRE
Simply hit up-arrow and enter and you can see ansi leak out 1 out of 8 or so tries.
I set up a script to do this 1000 times to temporary files. They all had the same CRC32. This only happens in screen rendering, not piping.
I'm not going to share my personal.htm file from my dropbox ;), but here are the matching lines, in case that's somehow important (I do not believe it is):
Code:
other lines
other lines
other lines
other lines
other lines
HOME THEATRE INPUT SETUP:
HOME THEATRE INPUT SETUP: Main TV ———> HDMI#2 — Main computer, always the main computer main screen
HOME THEATRE INPUT SETUP: ———> HDMI#3 (ARC) — Onkyo HDMI output of whatever input the stereo is set to [usually computer, sometimes xbox/kinhank]
HOME THEATRE INPUT SETUP: ———> HDMI#4 (MHL) — 3-way HDMI switcher, I think [xbox360 on it rn]
HOME THEATRE INPUT SETUP:
HOME THEATRE INPUT SETUP: Demona HDMI#1 out ———> main TV HDMI#2 (TODO: add Gledopto 3.0 amblight, make sure splitter is ready-to-go if passthrough problems manifest)
HOME THEATRE INPUT SETUP: Demona HDMI#2 out ———> HDMI splitter__/———> audio extraction port ———> FM transmitter + bedroom RCA cable + downstairs RCA cable (DAC retired)
HOME THEATRE INPUT SETUP: (top-rt scr) |———> output #1 ———————————————> top right TV (50" "Sceptre)
HOME THEATRE INPUT SETUP: |———> output #2 ———————————————> Onkyo receiver
HOME THEATRE INPUT SETUP: |———> output #3 ———————————————> Gledopto 1.0 ambilight
HOME THEATRE INPUT SETUP: \———> output #4 ———————————————> TODO: run downstairs for hardline screen mirroring
HOME THEATRE INPUT SETUP: Demona HDMI#3 out ———> HDMI splitter__/———> secondary 52" TV
HOME THEATRE INPUT SETUP: \———> secondary 52" TV's Gledopto 2.0 ambilight
HOME THEATRE INPUT SETUP: Demona HDMI#4 out ———> DVI adapter ———————> 20" monitor (1080p)
HOME THEATRE INPUT SETUP:
HOME THEATRE INPUT SETUP: Xbox360 HDMI output ———> HDMI splitter __/———> Onkyo "Game" input
HOME THEATRE INPUT SETUP: HDMI splitter \———> 3-way HDMI switcher ———> Main TV HDMI 4 (MHL)
HOME THEATRE INPUT SETUP:
HOME THEATRE INPUT SETUP: Kinhank HDMI output ———> HDMI splitter __/———> Onkyo "Cable/Sat" input
HOME THEATRE INPUT SETUP: HDMI splitter \———> 3-way HDMI switcher ———> Main TV HDMI 4 (MHL)
HOME THEATRE INPUT SETUP:
HOME THEATRE INPUT SETUP: Onkyo receiver output ———> HDMI switcher that connects to Main TV HDMI 3 (ARC) — set this for yes-gesture-control/publicc audio/all-sound-to-1-device
HOME THEATRE INPUT SETUP: [puposefully nothing] ———> HDMI switcher that connects to Main TV HDMI 3 (ARC) — set this for no-gesture-control/private audio/separate sound to TV
HOME THEATRE INPUT SETUP:
HOME THEATRE INPUT SETUP:
other lines
other lines
other lines
other lines
And in this case, the glitch was usually 2-4 leaking ansi charcters at the end of the first highlighted "HOME THEATRE"
Seems that EVERY shell i throw this at does it consistently EXCEPT tcc
and i've noticed this about TCC for a good 15 years now
It's not a grep-specific thing, either. Leaking ansi has happened a lot, regardless of the source of ANSI. It's not as bad as it used to be (50% leak rate on some commands), but it's still bad (15% leak rate on a lot of commands, i have to see garbage on my screen every day randomly.)