summaryrefslogtreecommitdiff
path: root/drivers/s390/char/con3270.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2022-11-17 17:52:40 +0100
committerHeiko Carstens <hca@linux.ibm.com>2023-01-09 14:33:58 +0100
commit970cf9a97a27d3f9a72a17aa6aedb47758478c33 (patch)
treefbb32b4a6eae627e6250ebe22ac73f7f332587bb /drivers/s390/char/con3270.c
parente4b57b93935d103aae10abea361af77ef906f368 (diff)
s390/tty3270: ignore NUL characters
With 'TERM=vt220' zsh is sending several NUL characters with the prompt to the tty. Both xterm and the linux drm console seem to ignore them. Ignore them in tty3270 as well. Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Tested-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'drivers/s390/char/con3270.c')
-rw-r--r--drivers/s390/char/con3270.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/s390/char/con3270.c b/drivers/s390/char/con3270.c
index 9c816d1239eb..7ff116c38715 100644
--- a/drivers/s390/char/con3270.c
+++ b/drivers/s390/char/con3270.c
@@ -1732,6 +1732,8 @@ static void tty3270_do_write(struct tty3270 *tp, struct tty_struct *tty,
}
switch (buf[i_msg]) {
+ case 0x00:
+ break;
case 0x07: /* '\a' -- Alarm */
tp->wcc |= TW_PLUSALARM;
break;