[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
bkgd.c
Description: Text Data
bkgrnd.c
Description: Text Data
signature.asc
Description: PGP signature
- Help wanted with bkgd() rookie mistake,
G. Branden Robinson <=
- Re: Help wanted with bkgd() rookie mistake, Bill Gray, 2025/01/05
- Re: Help wanted with bkgd() rookie mistake, G. Branden Robinson, 2025/01/05
- Re: Help wanted with bkgd() rookie mistake, Thomas Dickey, 2025/01/05
- Re: Help wanted with bkgd() rookie mistake, G. Branden Robinson, 2025/01/05
- Re: Help wanted with bkgd() rookie mistake, Thomas Dickey, 2025/01/05
- Re: Help wanted with bkgd() rookie mistake, G. Branden Robinson, 2025/01/05
- SOLVED: Help wanted with bkgd() rookie mistake, G. Branden Robinson, 2025/01/05
- Re: Help wanted with bkgd() rookie mistake, Thomas Dickey, 2025/01/05