From: Simon Strandgaard Date: 2004-12-21T16:31:04+09:00 Subject: curses - how to use unicode Yesterday I got xterm working with UTF-8. I had made an oneliner that outputted a small box. puts [0x250c, 0x2510, 10, 0x2514, 0x2518].pack("U*") When I try the same through curses.. then no unicode. I don't see the small box. require 'curses' Curses.init_screen Curses.cbreak Curses.raw Curses.noecho Curses.nonl window = Curses.stdscr window.keypad(true) window.setpos(0, 0) window.addstr([0x250c, 0x2510].pack("U*")) window.setpos(1, 0) window.addstr([0x2514, 0x2518].pack("U*")) Curses.getch Curses.close_screen What am I doing wrong? ruby 1.8.1 (2004-04-24) [i386-linux-gnu] /* $Id: curses.h.in,v 1.148 2004/01/14 23:50:12 tom Exp $ */ btw: I did the following to enable UTF-8 in an xterm: > xset +fp ~/local/lib/X11/fonts > setenv LANG dk.UTF-8 > xterm +u8 -fa '-misc-*-*-*-*-*-20-*-*-*-*-*-iso10646-1' & -- Simon Strandgaard