英文:
How to scroll in the yocto devshell?
问题
如何在 Yocto devshell 中上下滚动(使用 bitbake -c devshell my-recipe
启动)?
使用鼠标滚轮滚动时,会滚动命令历史记录而不是终端内容。使用 Shift + Page Up 会简单地打印出 ~2
(就像这个问题中描述的一样)。使用 reset
命令无法解决这个问题。
英文:
How to scroll up/down in the yocto devshell (started with bitbake -c devshell my-recipe
)?
Scrolling with the mouse is scrolling through the command history instead of through the terminal. Using <kbd>shift</kbd> + <kbd>page up</kbd> simply prints ~2
(as in this question). Using reset
doesn't fix it.
答案1
得分: 0
The yocto devshell uses a tmux environment (as shown by the output of ps -a
):
sh-5.0# ps -a
PID TTY TIME CMD
29 pts/0 00:00:00 sudo
30 pts/0 00:00:00 bash
60 pts/0 00:00:00 KnottyUI
186 pts/0 00:00:00 tmux: client
189 pts/1 00:00:00 sh
200 pts/1 00:00:00 ps
You can scroll down using tmux shortcuts (see this question for details), for instance using:
> <kbd>Ctrl-b</kbd> then <kbd>[</kbd> then you can use your normal
> navigation keys to scroll around (eg. <kbd>Up Arrow</kbd> or
> <kbd>PgDn</kbd>). Press <kbd>q</kbd> to quit scroll mode..
英文:
The yocto devshell uses a tmux environment (as shown by the output of ps -a
):
sh-5.0# ps -a
PID TTY TIME CMD
29 pts/0 00:00:00 sudo
30 pts/0 00:00:00 bash
60 pts/0 00:00:00 KnottyUI
186 pts/0 00:00:00 tmux: client
189 pts/1 00:00:00 sh
200 pts/1 00:00:00 ps
You can scroll down using tmux shortcuts (see this question for details), for instance using:
> <kbd>Ctrl-b</kbd> then <kbd>[</kbd> then you can use your normal
> navigation keys to scroll around (eg. <kbd>Up Arrow</kbd> or
> <kbd>PgDn</kbd>). Press <kbd>q</kbd> to quit scroll mode..
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论