mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
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>
This commit is contained in:
committed by
Heiko Carstens
parent
e4b57b9393
commit
970cf9a97a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user