MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / ttydisc_echo

Function ttydisc_echo

components/lwp/terminal/freebsd/tty_ttydisc.c:728–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

726}
727
728static int ttydisc_echo(struct lwp_tty *tp, char c, int quote)
729{
730 /*
731 * Only echo characters when ECHO is turned on, or ECHONL when
732 * the character is an unquoted newline.
733 */
734 if (!CMP_FLAG(l, ECHO) && (!CMP_FLAG(l, ECHONL) || c != CNL || quote))
735 return 0;
736
737 return ttydisc_echo_force(tp, c, quote);
738}
739
740static void ttydisc_reprint_char(void *d, char c, int quote)
741{

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