// console = fopen("con", "wt"); this worked under windows
// console = fopen("/dev/console", "wt"); segmentation fault
console = fopen("/dev/tty0", "wt"); returns zero
Writing to C using Mint Linux. I want to talk to the console regardless of the stdin and stdout redirection.
source
share