]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
s390/3270: fix garbled output on 3270 tty view
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 28 Apr 2016 14:32:13 +0000 (16:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 4 May 2016 14:29:52 +0000 (16:29 +0200)
commit2e63a3a66655d5fe5d85c090b009979870436c00
treeb371c5960714a2f4888a884e17eb5ab113f9d76e
parentb512353c15fe7665893e92e0c989c088505a37b8
s390/3270: fix garbled output on 3270 tty view

The tty3270_update function tries to optimize the output stream by
skipping the TO_SBA command to position the output offset if the
TO_RA command of the previous line ended at the same offset.
But some lines do not have the TO_RA at the end, namely those
with a length equal to the number of columns.

Make sure there is a TO_RA at the end of the previous line to avoid
funny looking output.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tty3270.c