Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ check_linux_console
Function
check_linux_console
sys/share/unixtty.c:444–452 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
442
}
443
444
void
445
check_linux_console(void)
446
{
447
struct vt_mode vtm;
448
449
if (isatty(0) && ioctl(0, VT_GETMODE, &vtm) >= 0) {
450
linux_flag_console = 1;
451
}
452
}
453
454
void
455
init_linux_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