el_resize(): * Called from program when terminal is resized */
| 591 | * Called from program when terminal is resized |
| 592 | */ |
| 593 | public void |
| 594 | el_resize(EditLine *el) |
| 595 | { |
| 596 | int lins, cols; |
| 597 | sigset_t oset, nset; |
| 598 | |
| 599 | (void) sigemptyset(&nset); |
| 600 | (void) sigaddset(&nset, SIGWINCH); |
| 601 | (void) sigprocmask(SIG_BLOCK, &nset, &oset); |
| 602 | |
| 603 | /* get the correct window size */ |
| 604 | if (terminal_get_size(el, &lins, &cols)) |
| 605 | terminal_change_size(el, lins, cols); |
| 606 | |
| 607 | (void) sigprocmask(SIG_SETMASK, &oset, NULL); |
| 608 | } |
| 609 | |
| 610 | |
| 611 | /* el_beep(): |
no test coverage detected