… | |
… | |
1533 | rxvt_get_ttymode (struct termios *tio, int erase) |
1533 | rxvt_get_ttymode (struct termios *tio, int erase) |
1534 | { |
1534 | { |
1535 | /* |
1535 | /* |
1536 | * standard System V termios interface |
1536 | * standard System V termios interface |
1537 | */ |
1537 | */ |
|
|
1538 | // does not work as stdin is not a tty |
1538 | if (tcgetattr (STDIN_FILENO, tio) < 0) |
1539 | // if (tcgetattr (STDIN_FILENO, tio) < 0) |
|
|
1540 | if (1) |
1539 | { |
1541 | { |
1540 | // return error - use system defaults, |
1542 | // return error - use system defaults, |
1541 | // where possible, and zero elsewhere |
1543 | // where possible, and zero elsewhere |
1542 | memset (tio, 0, sizeof (struct termios)); |
1544 | memset (tio, 0, sizeof (struct termios)); |
1543 | |
1545 | |