Skip to content

Details about usability issues #1

Closed
ghost opened this Issue Feb 23, 2012 · 5 comments

2 participants

@ghost
ghost commented Feb 23, 2012

Can you give more info about the problems the gem is having?

@Mon-Ouie
pry member

Coolline assumes your terminal supports ANSI codes (for clearing a line, using colors, moving the cursor, …), instead of using a library like ncurses, which is able to deal with many terminals (but sometimes feels like a curse to use). So, it doesn't fully support a wide range of terminals like it would using ncurses.

@banister
pry member

@autodidakto the 'up arrow' key wasn't working for a number of people, this made it impossible for them to access repl history and made using pry a frustrating experience

@banister banister closed this Feb 28, 2012
@banister
pry member
banister commented Apr 3, 2012

@autodidakto this gem has been fixed and is back up, let me know if it works for you!

@ghost
ghost commented Apr 3, 2012

I just installed it and now every command in pry gives me a zero division error:

[1] pry(main)> "hi"                                                             
ZeroDivisionError: divided by 0
from /Users/auto/Homebrew/Cellar/ruby/1.9.3-p125/lib/ruby/gems/1.9.1/gems/pry-0.9.8.3/lib/pry/indent.rb:197:in `/'
@Mon-Ouie
pry member
Mon-Ouie commented Apr 4, 2012

That's because of Pry's correct_indent setting which relies on Readline to get terminal size, but that doesn't work since Readline hasn't been initialized. As a temporary solution, you can just set Pry.config.correct_indent to false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.