如何在Yocto devshell中滚动?

huangapple go评论56阅读模式
英文:

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..

huangapple
  • 本文由 发表于 2023年6月5日 17:22:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76405039.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定