Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Escape chars in the prompt of perl5db.pl

0 views
Skip to first unread message

Dasn

unread,
May 6, 2009, 7:43:59 PM5/6/09
to debu...@perl.org
Hello, I hope this is the right place to ask this question.

I'm writing a program to communicate with perl debugger. The thing I
found hard to handle is the Escape chars output from the prompt, for
example, on my platform, the "DB<1>" is:
"<Esc>[4m DB<1> <Esc>[24m<Esc>[1m"

My question is: Is it possible to turn off these escape chars in perldb,
without changing perl5db.pl?

Thanks, please Cc me.

--
Dasn

Peter Scott

unread,
May 7, 2009, 9:45:08 AM5/7/09
to debu...@perl.org, da...@lavabit.com
On Thu, 07 May 2009 07:43:59 +0800, Dasn wrote:
> I'm writing a program to communicate with perl debugger. The thing I
> found hard to handle is the Escape chars output from the prompt, for
> example, on my platform, the "DB<1>" is:
> "<Esc>[4m DB<1> <Esc>[24m<Esc>[1m"
>
> My question is: Is it possible to turn off these escape chars in perldb,
> without changing perl5db.pl?

Try setting the TERM environment variable to 'dumb'.

--
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274

0 new messages