OSDN Git Service

s390/tty3270: add support for background color
authorSven Schnelle <svens@linux.ibm.com>
Thu, 17 Nov 2022 21:22:15 +0000 (22:22 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 9 Jan 2023 13:33:58 +0000 (14:33 +0100)
commit4043ea22535d00325b469c75cf4840612c09345b
tree502a5751f71977b3ef252e5986c0de790279a04b
parentc2e9375ecd67a0d4ff07e21e447a5bd4bec4da48
s390/tty3270: add support for background color

3270 terminals support 8 background colors. Add the code to utilize
them. Unfortunately the line erase code need to be adjusted: Without
background colors, it was sufficient to just set the line length to
zero. With background colors, we need to put spaces with the correct
background color.

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>
drivers/s390/char/con3270.c
drivers/s390/char/raw3270.h