Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NetHack/NetHack
/ setctty
Function
setctty
sys/share/unixtty.c:198–203 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
196
#endif
197
198
static void
199
setctty(void)
200
{
201
if (STTY(&curttyb) < 0 || STTY2(&curttyb2) < 0)
202
perror(
"NetHack (setctty)"
);
203
}
204
205
/*
206
* Get initial state of terminal, set ospeed (for termcap routines)
Callers
4
gettty
Function · 0.70
setftty
Function · 0.70
intron
Function · 0.70
introff
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected