Why doesn't Ruby ri return to bash command line?

When I execute ri ... in a terminal on my Mac, I get maybe 50 blank lines, then the output that I expect, and then the last line:

(END)

c (END) is displayed in white letters on a black background. I did not return to bash, however - ri still works, and I cannot enter anything. Also, why are all blank lines?

Why is this happening?

+3
source share
2 answers

( $PAGER, /usr/bin/more /usr/bin/less). , ( ), , . , q.

+5

? , , - . . ~/.bashrc (, , ):

alias ri='/usr/local/bin/ri -T'   # -T == --no-pager ... Send output directly to stdout, rather than to a pager. Pagers are damned annoying when the info you need disappears when you still need to see it ...
+2

Source: https://habr.com/ru/post/1729607/


All Articles