// Pancake in no-canonical terminal test x)

#include <stdio.h>
#include <termios.h>
#include <unistd.h>

main()
{
  char c[10];
  struct termios tio_old, tio_new;

  tcgetattr(0,&tio_old);
  memcpy (&tio_new,&tio_old,sizeof(struct termios));
  cfmakeraw(&tio_new);
  tio_new.c_cflag&=~(ICANON);
  tcsetattr(0,TCSANOW, &tio_new);
  fflush(stdout);
  read(0,c,1);
  tcsetattr(0,TCSANOW, &tio_old);
}
