Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Ncurses Panel userptr issues
Nit Khair
9/20/2008 4:26:00 PM
I am having issues with the userptr in Ncurses Panel. The C program I
converted from runs fine on my system.
(
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/p...
- the one
that takes tabs to travel through 3 panels).
I wrote it in ruby, the 3 panels display fine, but the program
terminates on tabbing with no message.
I feel the issue lies in the userptr - I have no samples to go on. Can
someone check this out. I tried both these variations:
Ncurses::Panel.set_panel_userptr(my_panels[0], my_panels[1]);
Ncurses::Panel.set_panel_userptr(my_panels[1], my_panels[2]);
Ncurses::Panel.set_panel_userptr(my_panels[2], my_panels[0]);
#my_panels[0].set_panel_userptr( my_panels[1]);
#my_panels[1].set_panel_userptr( my_panels[2]);
#my_panels[2].set_panel_userptr( my_panels[0]);
Later on tabbing my code is:
when 9:
top = Ncurses::Panel.panel_userptr(top);
Ncurses::Panel.top_panel(top);
break;
Thanks in advance.
Attachments:
http://www.ruby-...
attachment/2713/thre...
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Ncurses Panel userptr issues
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password