bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help wanted with bkgd() rookie mistake


From: G. Branden Robinson
Subject: Help wanted with bkgd() rookie mistake
Date: Sun, 5 Jan 2025 10:23:08 -0600

Hi folks,

I come once again to confess my confusion with basic curses operations.

Please find attached two C programs; I call them "bkgd" and "bkgrnd",
because they correspond to curses functions of the same name.

bkgrnd, the wide-character program, works fine.

bkgd, which you'd think would be simpler, doesn't.

In both, I expect the background character to be set to an underlined @
sign.

But only bkgrnd() is behaving this way.  It seems that logically or-ing
the character literal '@' with A_UNDERLINE is somehow wiping out the
character part.  Except it's not, because if I printf that expression as
a decimal integer, I can see that they indeed compose.

bkgd() seems to be discarding my character code.  What am I not
understanding?

Regards,
Branden

Attachment: bkgd.c
Description: Text Data

Attachment: bkgrnd.c
Description: Text Data

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]