Signed-off-by: Karel Zak <kzak@redhat.com>
default:
if ((size_t)(bp - logname) >= sizeof(logname) - 1)
log_err(_("%s: input overrun"), op->tty);
- if ((tp->c_lflag & ECHO) == 0)
+ if ((tp->c_lflag & ECHO) == 0) {
/* Visualize escape sequence instead of its execution */
if (ascval == CTL('['))
/* Ideally it should be "\xe2\x90\x9b"
write_all(1, "^[", 2);
else
write_all(1, &c, 1); /* echo the character */
+ }
*bp++ = ascval; /* and store it */
break;
}