ANSI(?) characters from perl debug are unwanted

Discussion in 'Perl Misc' started by Alan, Feb 6, 2004.

  1. Alan

    Alan Guest

    The display from perl -d is showing what i guess are ANSI display
    control sequences in an Windows XP Command Prompt window.

    E.g. the command line
    perl -d -e 42
    gives
    main::(-e:1): 42
    ?[4;m DB<1> ?[1mq
    ?[0m

    <I've snipped the banner lines>

    This is using perl, v5.8.0 built for MSWin32-x86-multi-thread
    (ActiveState build 806)

    How can the ANSI output be turned off, or alternatively XP be told to
    handle the ANSI correctly?

    thanks
    Alan
    Alan, Feb 6, 2004
    #1
    1. Advertising

  2. In article <>,
    Alan <> wrote:
    :The display from perl -d is showing what i guess are ANSI display
    :control sequences in an Windows XP Command Prompt window.

    :E.g. the command line
    : perl -d -e 42
    :gives
    : main::(-e:1): 42
    : ?[4;m DB<1> ?[1mq

    Those are ANSI alright. Turn on underline, then turn on bold.


    :How can the ANSI output be turned off,

    You could remove the Term::ANSI module I suppose.


    :eek:r alternatively XP be told to handle the ANSI correctly?

    Sorry, no clue on that part.
    --
    Any sufficiently advanced bug is indistinguishable from a feature.
    -- Rich Kulawiec
    Walter Roberson, Feb 7, 2004
    #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. Steve
    Replies:
    7
    Views:
    5,795
    Steve
    Sep 18, 2005
  2. Unwanted debug messages

    , Jan 17, 2006, in forum: C Programming
    Replies:
    3
    Views:
    331
  3. Replies:
    1
    Views:
    475
  4. Replies:
    11
    Views:
    1,055
    Keith Thompson
    Apr 28, 2008
  5. Frank Iannarilli

    pre-ansi to ansi c++ conversion?

    Frank Iannarilli, Jul 21, 2009, in forum: C++
    Replies:
    2
    Views:
    404
Loading...

Share This Page