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

Function read_prepare

extern/editline/src/read.c:452–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452protected void
453read_prepare(EditLine *el)
454{
455 if (el->el_flags & HANDLE_SIGNALS)
456 sig_set(el);
457 if (el->el_flags & NO_TTY)
458 return;
459 if ((el->el_flags & (UNBUFFERED|EDIT_DISABLED)) == UNBUFFERED)
460 tty_rawmode(el);
461
462 /* This is relatively cheap, and things go terribly wrong if
463 we have the wrong size. */
464 el_resize(el);
465 re_clear_display(el); /* reset the display stuff */
466 ch_reset(el, 0);
467 re_refresh(el); /* print the prompt */
468
469 if (el->el_flags & UNBUFFERED)
470 terminal__flush(el);
471}
472
473protected void
474read_finish(EditLine *el)

Callers 2

FUN(el,set)Function · 0.85
FUN(el,gets)Function · 0.85

Calls 7

sig_setFunction · 0.85
tty_rawmodeFunction · 0.85
el_resizeFunction · 0.85
re_clear_displayFunction · 0.85
ch_resetFunction · 0.85
re_refreshFunction · 0.85
terminal__flushFunction · 0.85

Tested by

no test coverage detected