I am trying to run an ncurses GUI application on an ARM board. I am running it using the serial console ttyAMA0 port. But when I run the ncurses program, the other processes running in the background will print debug messages i.e qDebug, qWarning into STDOUT i.e on the GUI layout and hence results in noise. I think the problem is because all the processes are using the same console device.So is there is a command line  or programmatic solution for this problem so that I could not see the other process' STDOUT on my ncurses GUI ?I tried GNU screen It is not really helping. Even in screen session I am seeing the output of those processes polluting the screenP.S: I have tried gdb solution and it works fine. But I want alternative solution for this
Separate STDOUT noise from ncurses
terminal;io redirection