… | |
… | |
1540 | if (1) |
1540 | if (1) |
1541 | { |
1541 | { |
1542 | // return error - use system defaults, |
1542 | // return error - use system defaults, |
1543 | // where possible, and zero elsewhere |
1543 | // where possible, and zero elsewhere |
1544 | memset (tio, 0, sizeof (struct termios)); |
1544 | memset (tio, 0, sizeof (struct termios)); |
|
|
1545 | if (VDISABLE) |
1545 | for (int i = 0; i < NCCS; i++) |
1546 | for (int i = 0; i < NCCS; i++) |
1546 | tio->c_cc[i] = VDISABLE; |
1547 | tio->c_cc[i] = VDISABLE; |
1547 | |
1548 | |
1548 | tio->c_cc[VINTR] = CINTR; |
1549 | tio->c_cc[VINTR] = CINTR; |
1549 | tio->c_cc[VQUIT] = CQUIT; |
1550 | tio->c_cc[VQUIT] = CQUIT; |
1550 | tio->c_cc[VERASE] = CERASE; |
1551 | tio->c_cc[VERASE] = CERASE; |
1551 | #ifdef VERASE2 |
1552 | #ifdef VERASE2 |