10 static struct termios orgstate
;
11 static struct termios workstate
;
17 tcsetattr (fd
, TCSANOW
, &orgstate
);
29 char a
= 0x13; //xoff;
33 void tapeinit (int tapefd
)
36 tcgetattr (tapefd
, &orgstate
);
37 tcgetattr (tapefd
, &workstate
);
38 workstate
.c_iflag
= 0;
39 workstate
.c_oflag
= 0;
40 workstate
.c_cflag
= CS8
| CREAD
| CLOCAL
| CRTSCTS
| CSTOPB
;
41 workstate
.c_lflag
= 0;
42 cfsetspeed (&workstate
, B4800
);
43 tcsetattr (tapefd
, TCSANOW
, &workstate
);