filter characters from libcurses.

S

Shea Martin

Not sure if I have the terminoly right, but basically, I have a handfully of
command line executables that use various sorts of progress bars. In *nix
one would use libcurses to generate such things, but I am in WIn32 now, so
not sure what they used.

Anyway, I am piping the output of these commands to a file with perl, and I
would like to strip out these characters. Is there a simple way to do this,
or do I have to manually strip out one bad char at a time?

~S
 
S

Sisyphus

Shea Martin said:
Not sure if I have the terminoly right, but basically, I have a handfully of
command line executables that use various sorts of progress bars. In *nix
one would use libcurses to generate such things, but I am in WIn32 now, so
not sure what they used.

Anyway, I am piping the output of these commands to a file with perl, and I
would like to strip out these characters. Is there a simple way to do this,
or do I have to manually strip out one bad char at a time?

If the progress bars are being written to STDERR, then it's just a matter of
having the files grab anything that goes to STDOUT, and ignoring the rest.
'perldoc -q STDERR' has some helpful information regarding that. Note that
the Win32 equivalent of "/dev/null" is simply "nul".

Cheers,
Rob
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,474
Latest member
AntoniaDea

Latest Threads

Top