| 678 | } |
| 679 | |
| 680 | static int |
| 681 | ttydisc_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 | |
| 695 | static void |
| 696 | ttydisc_reprint_char(void *d, char c, int quote) |
no test coverage detected