# Ncurses-ruby bugs

**URL:** <https://www.ruby-forum.com/t/ncurses-ruby-bugs/151862>\
**Category:** Ruby\
**Created:** [October 27, 2008, 5:02am UTC](https://www.ruby-forum.com/t/ncurses-ruby-bugs/151862 "2008-10-27T05:02:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sentinel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@sentinel](https://www.ruby-forum.com/u/sentinel)\
**Post date:** [October 27, 2008, 5:02am UTC](https://www.ruby-forum.com/t/ncurses-ruby-bugs/151862/1 "2008-10-27T05:02:08Z")

</div>

Sorry for posting here. I mailed the email in the code 3 weeks back but  
no response. [Berlios.de](http://Berlios.de) has closed bug reporting.

1. dynamic\_field\_info (form\_wrap.c):  
The function takes 3 arrays, but was not allowing 3.  
I changed 2 to 3 in line 1392, column 44. This is 0.9.1.

> RB\_CLASS\_METH(cFIELD, dynamic\_field\_info,2);

> RB\_CLASS\_METH(cFIELD, dynamic\_field\_info,3);

Now the method is callable.

1. ungetch: Many methods go through “method\_missing”. But this fails on  
ungetch and is likely to give an error on other methods too. I was not  
confident of touching that part of the code, so opened the class in ruby  
as follows:

module Ncurses  
class WINDOW  
def ungetch(ch)  
Ncurses.ungetch(ch)  
end  
end  
end

Something similar can be done for other methods that fail in  
method\_missing.

Thanks.
