5
これは私が代わりにユニコード☺
を得ることができる方法NCursesでUnicodeを印刷するには?
�~X�
を出力しますか?
#!/usr/bin/env perl6
use v6;
use NCurses;
my $win = initscr;
my Str $s = "\x[263a]";
printw($s);
nc_refresh;
while getch() < 0 {};
endwin;
「LANG = C perl6 -e」を実行すると、NCursesを使用することはできません。 printw( "\ x [263a]"); "私はコアダンプを取得します。 – neuhaus
これはCに関連していますが、ロケールなどを設定する上で参考になります。http://stackoverflow.com/questions/4703168/adding-unicode-utf8-chars-to-a-ncurses-display-in- c – mikeyq6