tmio.c
Mud/src/tmio.c · 233 B
From the archive buzztroll_mud-0.7.tar.gz
Download the archive « Back to the archive contents
#include <termios.h>
#include <stdio.h>
main ()
{
struct termios tio;
tcgetattr(0, &tio);
tio.c_cc[VMIN] = 1;
tio.c_cc[VTIME] = 0;
tio.c_lflag &= ~ICANON;
tcsetattr(0, TCSANOW, &tio);
}