Update rule.c

change _fileno() --> GetStdHandle(), so it could be shown on console.