Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > ncurses alternative character set?

Reply
Thread Tools

ncurses alternative character set?

 
 
Todd A. Jacobs
Guest
Posts: n/a
 
      03-13-2010
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"


 
Reply With Quote
 
 
 
 
R. Kumar
Guest
Posts: n/a
 
      03-17-2010
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/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ncurses.init_pair no longer seems to exist in the 'ncurses' package. Kenneth McDonald Ruby 1 09-27-2008 03:18 AM
Quicktime Alternative, RealPlayer Alternative & Media Player Classic John Capleton Computer Support 3 12-05-2005 07:41 AM
Console Application / NCurses Paul Woodward C++ 0 07-22-2003 02:13 PM
Linux Console Applications / NCurses Paul Woodward C++ 0 07-22-2003 11:50 AM
Linux Console Applications / NCurses Paul Woodward C++ 0 07-22-2003 11:40 AM



Advertisments