0

Ncurses have whole family of print functions for wide characters: https://linux.die.net/man/3/mvwaddnwstr

The problem with those is that it depends glibc, so if some UTF-8 character were yet not added to glibc those won't be printed properly example is: ✅

The solution I can see is to let ncurses handle displaying the character by "terminal", what I mean by that is that if we would have some sort of print function that would accept hex UTF-8 string and let terminal find correct font like below snippet do:

#include <iostream>
#include <unistd.h>

int main()
{
    write(1, "\xe2\x9c\x85", 9);
}

Is is possible with nCurses?

Mateusz Wojtczak
  • 1,621
  • 1
  • 12
  • 28

0 Answers0