DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦35184f740⟧ TextFile

    Length: 431 (0x1af)
    Types: TextFile
    Names: »tty.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦this⟧ »EUUGD11/euug-87hel/sec8/mcp/src/tty.c« 

TextFile

#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;
}