Changeset View
Changeset View
Standalone View
Standalone View
libexec/getty/main.c
Show First 20 Lines • Show All 469 Lines • ▼ Show 20 Lines | defttymode(void) | ||||
dogettytab(); | dogettytab(); | ||||
/* | /* | ||||
* Don't rely on the driver too much, and initialize crucial | * Don't rely on the driver too much, and initialize crucial | ||||
* things according to <sys/ttydefaults.h>. Avoid clobbering | * things according to <sys/ttydefaults.h>. Avoid clobbering | ||||
* the c_cc[] settings however, the console drivers might wish | * the c_cc[] settings however, the console drivers might wish | ||||
* to leave their idea of the preferred VERASE key value | * to leave their idea of the preferred VERASE key value | ||||
* there. | * there. | ||||
*/ | */ | ||||
cfmakesane(&def); | |||||
tmode.c_iflag = def.c_iflag; | tmode.c_iflag = def.c_iflag; | ||||
tmode.c_oflag = def.c_oflag; | tmode.c_oflag = def.c_oflag; | ||||
tmode.c_lflag = def.c_lflag; | tmode.c_lflag = def.c_lflag; | ||||
tmode.c_cflag = def.c_cflag; | tmode.c_cflag = def.c_cflag; | ||||
if (NC) | if (NC) | ||||
tmode.c_cflag |= CLOCAL; | tmode.c_cflag |= CLOCAL; | ||||
omode = tmode; | omode = tmode; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 334 Lines • Show Last 20 Lines |