daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest May 16th, 2018 112 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void    raw_mode(struct termios *t)
  2. {
  3.   t->c_lflag &= ~ICANON;
  4.   t->c_cc[VMIN] = 1;
  5.   t->c_cc[VTIME] = 0;
  6.   if (tcsetattr(0, t) == -1)
  7.     {
  8.       fprintf(stderr, "tcsetattr failed\n");
  9.       exit(1);
  10.     }
  11. }
RAW Paste Data
Top