From: Todd A. Jacobs on 13 Mar 2010 03:58 I'm exploring the ncurses library for Ruby 1.8, and am unclear how to access the alternative character set (e.g. ACS_LTEE) from within Ruby. For example: require 'ncurses' Ncurses.initscr Ncurses.addstr Ncurses.ACS_LTEE Ncurses.refresh Ncurses.getch Ncurses.endwin doesn't print the left tee. How can I access the alternative character set properly? -- "Oh, look: rocks!" -- Doctor Who, "Destiny of the Daleks"
From: R. Kumar on 16 Mar 2010 23:53 Todd A. Jacobs wrote: > I'm exploring the ncurses library for Ruby 1.8, and am unclear how to > access the alternative character set (e.g. ACS_LTEE) from within Ruby. > For example: > > require 'ncurses' > Ncurses.initscr > Ncurses.addstr Ncurses.ACS_LTEE window.mvwaddch(0, 0, Ncurses::ACS_LTEE) Works for me. -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: Why no TextMate for Linux? (corrected) Next: Wsdl - Webservice Client |