* Get initial state of terminal, set ospeed (for termcap routines) * and switch off tab expansion if necessary. * Called by startup() in termcap.c and after returning from ! or ^Z */
| 18 | * Called by startup() in termcap.c and after returning from ! or ^Z |
| 19 | */ |
| 20 | void |
| 21 | gettty(void) |
| 22 | { |
| 23 | erase_char = '\b'; |
| 24 | kill_char = 21; /* cntl-U */ |
| 25 | iflags.cbreak = TRUE; |
| 26 | #if !defined(TOS) |
| 27 | disable_ctrlP(); /* turn off ^P processing */ |
| 28 | #endif |
| 29 | #if defined(MSDOS) && defined(NO_TERMS) |
| 30 | gr_init(); |
| 31 | #endif |
| 32 | } |
| 33 | |
| 34 | /* reset terminal to original state */ |
| 35 | void |
no test coverage detected