ncurses alternative character set?

Discussion in 'Ruby' started by Todd A. Jacobs, Mar 13, 2010.

  1. 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"
     
    Todd A. Jacobs, Mar 13, 2010
    #1
    1. Advertisements

  2. Todd A. Jacobs

    R. Kumar Guest

    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/.
     
    R. Kumar, Mar 17, 2010
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Velvet
    Replies:
    9
    Views:
    15,817
    Joerg Jooss
    Jan 19, 2006
  2. raavi
    Replies:
    2
    Views:
    1,087
    raavi
    Mar 2, 2006
  3. cgbusch
    Replies:
    6
    Views:
    8,050
    Mike Brown
    Sep 2, 2003
  4. Austin Bingham

    set using alternative hash function?

    Austin Bingham, Oct 15, 2009, in forum: Python
    Replies:
    20
    Views:
    879
    Carl Banks
    Oct 17, 2009
  5. Chris Rebert

    Re: set using alternative hash function?

    Chris Rebert, Oct 15, 2009, in forum: Python
    Replies:
    2
    Views:
    388
    Chris Rebert
    Oct 15, 2009
  6. Austin Bingham

    Re: set using alternative hash function?

    Austin Bingham, Oct 15, 2009, in forum: Python
    Replies:
    6
    Views:
    365
    Austin Bingham
    Oct 15, 2009
  7. Kenneth McDonald
    Replies:
    1
    Views:
    263
    Nit Khair
    Sep 27, 2008
  8. Patrick Put
    Replies:
    9
    Views:
    274
    Robert Klemme
    Feb 3, 2009
Loading...