Subversion Repositories planix.SVN

Rev

Rev 119 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 121
Line 20... Line 20...
20
}
20
}
21
 
21
 
22
void
22
void
23
enable_raw()
23
enable_raw()
24
{
24
{
-
 
25
	struct termios raw;
25
	tcgetattr(STDIN_FILENO, &orig_termios);
26
	tcgetattr(STDIN_FILENO, &orig_termios);
26
	atexit(disable_raw);
27
	atexit(disable_raw);
27
	struct termios	raw = orig_termios;
28
	raw = orig_termios;
28
	raw.c_iflag &= ~(IXON);
29
	raw.c_iflag &= ~(IXON);
29
	raw.c_lflag &= ~(ECHO | ICANON | ISIG);
30
	raw.c_lflag &= ~(ECHO | ICANON | ISIG);
30
	tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
31
	tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
31
}
32
}
32
 
33