terminal_alloc_display
static int terminal_alloc_display(EditLine *);
if (terminal_alloc_display(el) == -1)