| 726 | } |
| 727 | |
| 728 | static 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 | |
| 740 | static void ttydisc_reprint_char(void *d, char c, int quote) |
| 741 | { |
no test coverage detected