Michael W. Ryder
10/31/2008 6:46:00 PM
Nit Khair wrote:
> Of late I am not getting the full exception on the screen. Perhaps this
> is happening after I reorganized my project using 'hoe'. The line is
> getting truncated at end of screen, rather than being wrapped.
>
> e.g.
> /Users/sentinel/work/projects/rbcurse/lib/rbcurse/singletable.rb:158:in
> `disable_key_fields': undefined method `g)
>
> Very often i am getting very little of the error message to be able to
> figure out anything. Ruby is aware of the number of cols of my terminal
> and is truncating the exception at terminal width i/o wrapping the same.
>
> thanks.
It looks like you are using curses so I will answer with that
assumption. If you use the command nonl() it will turn off the mapping
of a carriage return on a newline. I think this will give you the
behavior you are seeing.
I haven't tried using curses with Ruby yet so am not entirely sure of
some of it's behavior.