Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Term::ReadLine and Term::ANSIColor don't play well on Windows

by kubrat (Scribe)
on Mar 26, 2013 at 20:18 UTC ( #1025578=note: print w/replies, xml ) Need Help??


in reply to Re: Term::ReadLine and Term::ANSIColor don't play well on Windows
in thread Term::ReadLine and Term::ANSIColor don't play well on Windows

The problem is that Term::ANSIColor does work on its own and on cmd.exe.

But it won't work when you try to output colors through Term::ReadLine's OUT handle on cmd.exe. And it is only this combination that does not work. If you try the same thing on Linux then all is well.

Also, as far as I can tell there are other modules that expected it to work like Devel::REPL for example.
  • Comment on Re^2: Term::ReadLine and Term::ANSIColor don't play well on Windows

Replies are listed 'Best First'.
Re^3: Term::ReadLine and Term::ANSIColor don't play well on Windows
by LanX (Sage) on Mar 26, 2013 at 21:04 UTC
    Even on Linux one is confronted with coloring problems e.g. when trying to have syntax highlighting within the debugger.

    Term::ReadLine is only a wrapper using which ever underlying module is installed. The full list of features is only supplied by Term::ReadLine::Gnu , which builds on a Gnu-Readline programmed in C.

    So what are you using on Win???

    Since finding support for these issues in GNU-Readline isn't easy, I suppose that only reimplementing the full library in Perl can help here.

    Are you volunteering?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1025578]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2022-10-06 08:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred way to holiday/vacation is:











    Results (26 votes). Check out past polls.

    Notices?