tty_noquotemode(): * Turn off quote mode */
| 1111 | * Turn off quote mode |
| 1112 | */ |
| 1113 | protected int |
| 1114 | tty_noquotemode(EditLine *el) |
| 1115 | { |
| 1116 | |
| 1117 | if (el->el_tty.t_mode != QU_IO) |
| 1118 | return 0; |
| 1119 | if (tty_setty(el, TCSADRAIN, &el->el_tty.t_ed) == -1) { |
| 1120 | #ifdef DEBUG_TTY |
| 1121 | (void) fprintf(el->el_errfile, "%s: tty_setty: %s\n", __func__, |
| 1122 | strerror(errno)); |
| 1123 | #endif /* DEBUG_TTY */ |
| 1124 | return -1; |
| 1125 | } |
| 1126 | el->el_tty.t_mode = ED_IO; |
| 1127 | return 0; |
| 1128 | } |
| 1129 | |
| 1130 | |
| 1131 | /* tty_stty(): |
no test coverage detected