Re: Colorize Get-Childitem Output
- From: "/\\/\\o\\/\\/" <no@xxxxxxxx>
- Date: Tue, 03 Jan 2006 07:41:14 +0100
Grzegorz Niemirowski wrote:
/\/\o\/\/ <no@xxxxxxxx> napisał(a):
Yep,
this one will work, and as it does not use Write-Host, you can still redirect the output.
[CUT]
Very nice but the header is also colored. It looks like it's part of the first item. E.g. if the first file is .msh then "Directory: FileSystem..." is printed in red, not just the file itself.
I did notice that, that's the handling of the Object's by MSH,
as we use the default formating, as the header get's created for the first Object.
I did not know how to prevent that.
an other way would be to use processblocks in the function and do all the formatting yourself.(what will give you text to output also.)but you loose the objects.
So, I did choose to live with it.
another "bug" thats in it that I get 2 blank lines extra when I pipeline the output (ll | out-string), I don't know where they come from.
gr /\/\o\/\/ .
- Follow-Ups:
- Re: Colorize Get-Childitem Output
- From: lee . holmes
- Re: Colorize Get-Childitem Output
- References:
- Colorize Get-Childitem Output
- From: Tom G.
- Re: Colorize Get-Childitem Output
- From: Keith Hill
- Re: Colorize Get-Childitem Output
- From: Tom G.
- Re: Colorize Get-Childitem Output
- From: /\\/\\o\\/\\/
- Re: Colorize Get-Childitem Output
- From: /\\/\\o\\/\\/
- Re: Colorize Get-Childitem Output
- From: Tom G.
- Re: Colorize Get-Childitem Output
- From: Tom G.
- Re: Colorize Get-Childitem Output
- From: /\\/\\o\\/\\/
- Re: Colorize Get-Childitem Output
- From: /\\/\\o\\/\\/
- Re: Colorize Get-Childitem Output
- From: Grzegorz Niemirowski
- Colorize Get-Childitem Output
- Prev by Date: Re: Change print processor
- Next by Date: Re: Change print processor
- Previous by thread: Re: Colorize Get-Childitem Output
- Next by thread: Re: Colorize Get-Childitem Output
- Index(es):
Relevant Pages
|