| 450 | } |
| 451 | |
| 452 | protected void |
| 453 | read_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 | |
| 473 | protected void |
| 474 | read_finish(EditLine *el) |
no test coverage detected