Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - PowerShell 1.0 counld support ANSI escape sequence color?

Reply
 
Old 09-18-2007   #1 (permalink)
william.wang


 
 

PowerShell 1.0 counld support ANSI escape sequence color?

hi:
I just use powershell recently,it is *real console* from Microsoft.

but I can't find the way to use ANSI escape sequence color code

like Prompt $e[1;31m Hello World $e[0m

make no sense.

because the write-host could output colored text,so I think maybe has
a way to use the Ansi Escape Sequence color code

thanks


My System SpecsSystem Spec
Old 09-18-2007   #2 (permalink)
Oisin Grehan


 
 

Re: PowerShell 1.0 counld support ANSI escape sequence color?

On Sep 18, 8:43 pm, "william.w...@xxxxxx" <william.w...@xxxxxx>
wrote:
Quote:

> hi:
> I just use powershell recently,it is *real console* from Microsoft.
>
> but I can't find the way to use ANSI escape sequence color code
>
> like Prompt $e[1;31m Hello World $e[0m
>
> make no sense.
>
> because the write-host could output colored text,so I think maybe has
> a way to use the Ansi Escape Sequence color code
>
> thanks
while powershell.exe doesn't support ansi codes (yet?), Jaykul's
amazing PoshConsole does:

http://www.codeplex.com/poshconsole/

- Oisin

My System SpecsSystem Spec
Old 09-19-2007   #3 (permalink)
william.wang


 
 

Re: PowerShell 1.0 counld support ANSI escape sequence color?

On Sep 19, 10:00 am, Oisin Grehan <ois...@xxxxxx> wrote:
Quote:

> On Sep 18, 8:43 pm, "william.w...@xxxxxx" <william.w...@xxxxxx>
> wrote:
>
Quote:

> > hi:
> > I just use powershell recently,it is *real console* from Microsoft.
>
Quote:

> > but I can't find the way to use ANSI escape sequence color code
>
Quote:

> > like Prompt $e[1;31m Hello World $e[0m
>
Quote:

> > make no sense.
>
Quote:

> > because the write-host could output colored text,so I think maybe has
> > a way to use the Ansi Escape Sequence color code
>
Quote:

> > thanks
>
> while powershell.exe doesn't support ansi codes (yet?), Jaykul's
> amazing PoshConsole does:
>
> http://www.codeplex.com/poshconsole/
>
> - Oisin
thanks.
I download the poshconsole,but its speed is very slow.



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Escape sequence in registry path PowerShell
ANN: PowerShell support added to JAMS PowerShell
ASCII / ANSI Character sets in Vista Vista General
Active Directory support in PowerShell PowerShell
ansi versus unicode output with redirection operators? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46