Example #1
0
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));
}
Example #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;
}
Example #3
0
int		raw_mode_off(struct termios *t)
{
  t->c_lflag |= (ICANON | ECHO);
  return (modif_term(t));
}