예제 #1
0
파일: termcaps.c 프로젝트: kokaz/42sh
int		raw_mode(struct termios *t)
{
  t->c_lflag &= ~(ICANON | ECHO);
  t->c_cc[VMIN] = 1;
  t->c_cc[VTIME] = 0;
  return (modif_term(t));
}
예제 #2
0
void			ft_fg(int i)
{
	struct termios *term;

	term = SING->term;
	modif_term(SING->term);
	signal(SIGTSTP, ft_z);
	print_list(SING);
	(void)i;
}
예제 #3
0
파일: termcaps.c 프로젝트: kokaz/42sh
int		raw_mode_off(struct termios *t)
{
  t->c_lflag |= (ICANON | ECHO);
  return (modif_term(t));
}