Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ check_sco_console
Function
check_sco_console
sys/share/unixtty.c:388–394 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
386
}
387
388
void
389
check_sco_console(void)
390
{
391
if (isatty(0) && ioctl(0, CONS_GET, 0) != -1) {
392
sco_flag_console = 1;
393
}
394
}
395
396
void
397
init_sco_cons(void)
Callers
2
main
Function · 0.85
libnhmain.c
File · 0.85
Calls
1
isatty
Function · 0.85
Tested by
no test coverage detected