I am writing an application that requires a quasi realtime display using ncurses that runs in a standard text ("virtual"?) console.
My problem is knowing what to do to ensure that nothing else will write to this terminal and hence corrupt what is displayed.
It seems that my efforts so far are corrupted primarily by
- occasional system/kernal messages
- and even echos from other virtual terminals (e.g. echo "Hello" > /dev/tty1) appear and corrupt the display
(There may be other daemons just waiting to add to this list that I am not yet aware of)
Is there a programming solution to make what appears on the console under the exclusive control of the application that is running within it?