daily pastebin goal
67%
SHARE
TWEET

Untitled

a guest May 16th, 2018 113 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top