#include <stdio.h>
#include <termios.h>
#define     XON                     0x11

struct termios old_termios;

void
fd_init()

{
	struct termios t;

	tcgetattr(0,&old_termios);
	tcgetattr(0,&t);
	t.c_iflag = 0;
	t.c_oflag = 0;
	t.c_lflag = 0;
	t.c_cflag |= CS8;
	tcsetattr(0,TCSANOW,&t);
}

void
fd_exit()

{
	tcsetattr(0,TCSANOW,&old_termios);
}

main()
{
  fd_init();
  putchar(XON);
  fd_exit();
  exit(0);
}
