Skip to content

curses: fix attribute passing

Matthew Kilgore qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesIn review

Changes in v2 from the cover letter

- Split into two patches, one dealing with the attribute masks, and one dealing with correctly passing the color pair number.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2curses: use the bit mask constants provided by cursesui/curses.c+2 -22 replies
2/2curses: correctly pass the color pair to setcchar()ui/curses.c+3 -11 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéSamuel Thibault
1/2R-b R-b T-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] curses: fix attribute passing

This patch set fixes up ui/curses.c. A previous change to ui/curses.c, commit 962cf8fd4fae ("ui/curses: manipulate cchar_t with standard curses functions"), did not correctly pass the attributes from the chtype to setcchar().

The biggest issue this caused is that colors no longer work when using the curses display, it instead renders everything in white on black. This was fixed by correctly passing the color pair number to setcchar(). I also fixed two spots where 0xff was used instead of the bit mask constants that are part of the curses API.

changes in v2:
- Split into two patches, one dealing with the attribute masks, and one dealing with correctly passing the color pair number.

Thanks,
Matthew Kilgore

Matthew Kilgore (2):
curses: use the bit mask constants provided by curses
curses: correctly pass the color pair to setcchar()

 ui/curses.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.23.0