I'm trying to get the integer value of ncurses alternative character sheet characters.
#include <iostream>
int main() {
uint i = ACS_S7; //I've also tried other values
std::cout << i << std::endl;
}
just prints 0
though.
I'm trying to get the integer value of ncurses alternative character sheet characters.
#include <iostream>
int main() {
uint i = ACS_S7; //I've also tried other values
std::cout << i << std::endl;
}
just prints 0
though.
Perhaps you didn't call initscr()
. This must be called before doing anything else in ncurses.
In this case, ACS_S7
is a macro that refers to a static array, and part of the initscr()
setup fills in that array based on the current locale etc.