Exception getting truncated (at terminal width)

N

Nit Khair

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.
 
M

Michael W. Ryder

Nit said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top