I have CLI program that with parameters works automatically, however it still has a TUI (for example something written with curses) which can't be disabled. I am trying :
subprocess.check_call([executable, '-parameter'], stdout=subprocess.DEVNULL)
It disables most of the output, but still there's some left (parts that change). How to completly disable output from it? Thank you.