curses: use the bit mask constants provided by curses
commitcd54ea456dbb2c704e8eb88c8ef4d3316aec133b
authorMatthew Kilgore <mattkilgore12@gmail.com>
Fri, 4 Oct 2019 03:53:37 +0000 (3 23:53 -0400)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Oct 2019 08:39:12 +0000 (18 10:39 +0200)
treece32dc6f6846e00b16fe7b29d8a4a7caad225b0a
parentdff742ad27efa474ec04accdbf422c9acfd3e30e
curses: use the bit mask constants provided by curses

The curses API provides the A_ATTRIBUTES and A_CHARTEXT bit masks for
getting the attributes and character parts of a chtype, respectively. We
should use provided constants instead of using 0xff.

Signed-off-by: Matthew Kilgore <mattkilgore12@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Message-id: 20191004035338.25601-2-mattkilgore12@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/curses.c