samedi 4 avril 2015

Cannot open /dev/console


Vote count:

0





// console = fopen("con", "wt"); this worked under windows
// console = fopen("/dev/console", "wt"); segmentation fault
console = fopen("/dev/tty0", "wt"); returns zero


Writing in C, using Mint Linux. I want to talk to the console regardless of redirection of stdin & stdout.



asked 51 secs ago







Cannot open /dev/console

Aucun commentaire:

Enregistrer un commentaire