If you use initscr()
, the file descriptor you ask for is fileno(stdin)
, since the initscr subroutine is equivalent to:
newterm(getenv("TERM"), stdout, stdin); return stdscr;
If you use newterm(type, outfile, infile)
, the file descriptor is fileno(infile)
.