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 shift + page up simply prints ~2
(as in this question). Using reset
doesn't fix it.
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:
Ctrl-b then [ then you can use your normal navigation keys to scroll around (eg. Up Arrow or PgDn). Press q to quit scroll mode..