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

Function tty_noquotemode

extern/editline/src/tty.c:1113–1128  ·  view source on GitHub ↗

tty_noquotemode(): * Turn off quote mode */

Source from the content-addressed store, hash-verified

1111 * Turn off quote mode
1112 */
1113protected int
1114tty_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():

Callers 1

ed_quoted_insertFunction · 0.85

Calls 1

tty_settyFunction · 0.85

Tested by

no test coverage detected