0

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.

Jones
  • 1,154
  • 1
  • 10
  • 35

1 Answers1

1

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.

M.M
  • 138,810
  • 21
  • 208
  • 365