|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 431 (0x1af)
Types: TextFile
Names: »tty.c«
└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
└─⟦this⟧ »EUUGD11/euug-87hel/sec8/mcp/src/tty.c«
#include <sys/ioctl.h>
extern int DevTty;
cbreak()
{
struct sgttyb sg;
(void) ioctl(DevTty, TIOCGETP, (char *)&sg);
sg.sg_flags |= CBREAK;
sg.sg_flags &= ~(CRMOD|ECHO|RAW);
(void) ioctl(DevTty, TIOCSETP, (char *)&sg);
return;
}
nocbreak()
{
struct sgttyb sg;
(void) ioctl(DevTty, TIOCGETP, (char *)&sg);
sg.sg_flags &= ~CBREAK;
sg.sg_flags |= (CRMOD|ECHO);
(void) ioctl(DevTty, TIOCSETP, (char *)&sg);
return;
}