From: "Michael W. Ryder" <_mwryder@...> Date: 2008-11-01T03:49:02+09:00 Subject: Re: Exception getting truncated (at terminal width) 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.