Format With Color Output

Discussion in 'Perl Misc' started by Muller, Jan 5, 2005.

  1. Muller

    Muller Guest

    Hi,
    I am using FORMAT Comand to beautify the conlsole output using "write",
    and I use Win32::Console to add colors, I want only cirtain Variables
    defined in FORMAT to get color effect,
    if I change the color value like
    $Console->Attr($Color);
    write;
    then complete FORMAT output is changed,
    Muller, Jan 5, 2005
    #1
    1. Advertising

  2. Muller

    Tlexnex Guest

    Muller wrote:
    > Hi,
    > I am using FORMAT Comand to beautify the conlsole output using

    "write",
    > and I use Win32::Console to add colors, I want only cirtain Variables


    > defined in FORMAT to get color effect,
    > if I change the color value like
    > $Console->Attr($Color);
    > write;
    > then complete FORMAT output is changed,


    I'm trying to handle colors within formats as well, did you find a
    resolution to this? I want to create a logging standard for my script
    processes that resembles the Linux boot process - easy to follow and
    read. There does not seem to be a clean way to do this in Perl..
    Thanks,

    Todd
    Tlexnex, Jan 13, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moondaddy
    Replies:
    3
    Views:
    38,279
    moondaddy
    Apr 28, 2004
  2. PJ6
    Replies:
    4
    Views:
    4,889
  3. Andrew Arace

    BGR Color to Java Color

    Andrew Arace, Sep 13, 2003, in forum: Java
    Replies:
    7
    Views:
    7,784
    Stephen Gilbert
    Sep 16, 2003
  4. Niels Dybdahl

    Color.white vs. Color.WHITE

    Niels Dybdahl, Oct 6, 2004, in forum: Java
    Replies:
    3
    Views:
    433
    Chris Smith
    Oct 6, 2004
  5. Kamaljeet Saini
    Replies:
    0
    Views:
    406
    Kamaljeet Saini
    Feb 13, 2009
Loading...

Share This Page