在Rails控制台中,我的输出通常是一个哈希,只要它填充几个屏幕。
我可以按空格键到达哈希的底部。 此时,屏幕闪烁END,但我无法“过去”哈希的底部进入我的下一个命令。
同样,我无法向上滚动以查看哈希的内容。
我该怎么办?
顺便说一句,我的Gemfile包括:
group :development, :test do gem 'hirb' endIn Rails Console, my output is often a hash so long it fills several screens.
I can press the space bar to get to the bottom of the hash. At that point, the screen flashes END, but I can't get "past" the bottom of the hash to enter my next command.
Likewise, I can't scroll up to review the contents of the hash.
What should I do?
BTW, my Gemfile includes:
group :development, :test do gem 'hirb' end最满意答案
好吧它看起来不那么像界面。
尝试arrow up/arrow down/page up/page down键进行导航,然后按q退出哈希视图。
Well it looks as less-like interface.
Try arrow up/arrow down/page up/page down keys for navigation and press q to quit the hash view.
在Rails控制台中使用多屏幕输出(Working with multiscreen output in Rails Console)在Rails控制台中,我的输出通常是一个哈希,只要它填充几个屏幕。
我可以按空格键到达哈希的底部。 此时,屏幕闪烁END,但我无法“过去”哈希的底部进入我的下一个命令。
同样,我无法向上滚动以查看哈希的内容。
我该怎么办?
顺便说一句,我的Gemfile包括:
group :development, :test do gem 'hirb' endIn Rails Console, my output is often a hash so long it fills several screens.
I can press the space bar to get to the bottom of the hash. At that point, the screen flashes END, but I can't get "past" the bottom of the hash to enter my next command.
Likewise, I can't scroll up to review the contents of the hash.
What should I do?
BTW, my Gemfile includes:
group :development, :test do gem 'hirb' end最满意答案
好吧它看起来不那么像界面。
尝试arrow up/arrow down/page up/page down键进行导航,然后按q退出哈希视图。
Well it looks as less-like interface.
Try arrow up/arrow down/page up/page down keys for navigation and press q to quit the hash view.
发布评论