I'm running ri version 2.5.8 and ruby 1.9.2. If I try something like ri Enumerable | less
, the paging is broken in less. I see output but I can't use CTRL-F or CTRL-B to page back and forward. If I try to, I just see the literal "^F" and "^B" characters output at the bottom of the screen. What's wrong?
Asked
Active
Viewed 223 times
1

user207421
- 305,947
- 44
- 307
- 483

dan
- 43,914
- 47
- 153
- 254
3 Answers
1
Try ri -T String | less
.
If you want that behavior always you could put alias ri='ri -T'
in your ~/.bashrc
or ~/.bash_profile
or ~/.profile
, which ever you use.

the Tin Man
- 158,662
- 42
- 215
- 303
-
Thanks, but that still doesn't change the behavior I described. Maybe something is wrong with my setup. – dan Nov 25 '10 at 19:10
1
Try PAGER=/usr/bin/less ri Enumerable
- specifying pager in environment variables did the trick for me.
For a permanent solution do something like echo "export PAGER=/usr/bin/less" >> ~/.bash_profile && source ~/.bash_profile
0
I can reproduce the problem on OSX 10.6 terminal and iTerm2 with ri version 2.5.8 and ruby 1.9.2. Did anyone find a fix? At the moment I can use the scrollbar of my graphical terminal client, but it gets tedious.
As a workaround I use the ORI gem, ri from within irb: https://github.com/dadooda/ori

Francis Siefken
- 11
- 3
-
when you want to be updated about this dont post an answer to this question. fav it instead or write a comment. – toxicate20 Nov 24 '12 at 11:22