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