5
DrukujeJak wydrukować Unicode za pomocą programu NCurses?
�~X�
Jak mogę uzyskać Unicode ☺
zamiast?
#!/usr/bin/env perl6
use v6;
use NCurses;
my $win = initscr;
my Str $s = "\x[263a]";
printw($s);
nc_refresh;
while getch() < 0 {};
endwin;
Nie mogę ci pomóc, gdy uruchomię 'LANG = C perl6 -e 'użyj NCurses; printw ("\ x [263a]"); "Dostaję coredump. – neuhaus
Jest to powiązane z C, ale może być pomocne pod względem ustawień regionalnych i innych: http://stackoverflow.com/questions/4703168/adding-unicode-utf8-chars-to-a-ncurses-display-in- do – mikeyq6