MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ttydisc_echo

Function ttydisc_echo

freebsd/kern/tty_ttydisc.c:680–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680static int
681ttydisc_echo(struct tty *tp, char c, int quote)
682{
683
684 /*
685 * Only echo characters when ECHO is turned on, or ECHONL when
686 * the character is an unquoted newline.
687 */
688 if (!CMP_FLAG(l, ECHO) &&
689 (!CMP_FLAG(l, ECHONL) || c != CNL || quote))
690 return (0);
691
692 return ttydisc_echo_force(tp, c, quote);
693}
694
695static void
696ttydisc_reprint_char(void *d, char c, int quote)

Callers 4

ttydisc_reprint_charFunction · 0.85
ttydisc_reprintFunction · 0.85
ttydisc_rubcharFunction · 0.85
ttydisc_rintFunction · 0.85

Calls 1

ttydisc_echo_forceFunction · 0.85

Tested by

no test coverage detected