Forum: Ruby Exception getting truncated (at terminal width)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0026dd77fd9ecc97b36e5b79cdbcf590?d=identicon&s=25 R. Kumar (sentinel)
on 2008-10-31 05:15
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.
Ee04bc0ca6dcdad4a7e8a8e1d4efb5d0?d=identicon&s=25 Michael W. Ryder (Guest)
on 2008-10-31 19:51
(Received via mailing list)
Nit Khair wrote:
> 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.
This topic is locked and can not be replied to.