❔ Output from a command line app has extra characters when redirected to my application

here is the redirected output. It has these weird characters that are underlined. When running the command line application by itself these characters are not there. Why do i get these characters when i redirect the output?
6 Replies
cap5lut
cap5lut2y ago
these are the ansi escape codes, i guess when u run it by itself the output is colored?
Diesel Geezer
Diesel GeezerOP2y ago
@cap5lut its just white text
cap5lut
cap5lut2y ago
oh right, i mislooked. anyway these are still ansi escape codes, the very first seem to be erase line and keep cursor position, followed by moving the curser by 0 column positions (as its the very first output u wont see a difference in the console, but its still there in the stream so either check if there is some way to configure the process to not use the ansi escape codes, or filter them out manually (maybe there is a lib for that? dunno)
Diesel Geezer
Diesel GeezerOP2y ago
oh alright. Thanks for the help
nukleer bomb
nukleer bomb2y ago
This may happen if you do something other than just writing text. For example: moving cursor or changing foreground/background color
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server