MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / el_resize

Function el_resize

extern/editline/src/el.c:593–608  ·  view source on GitHub ↗

el_resize(): * Called from program when terminal is resized */

Source from the content-addressed store, hash-verified

591 * Called from program when terminal is resized
592 */
593public void
594el_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():

Callers 2

sig_handlerFunction · 0.85
read_prepareFunction · 0.85

Calls 2

terminal_get_sizeFunction · 0.85
terminal_change_sizeFunction · 0.85

Tested by

no test coverage detected