I've installed FreeBSD inside a VM on a laptop. As it turns out, the laptop keyboard has no Scroll Lock key, which is used for scrolling the screen back in FreeBSD's console. How can I scroll back the output without Scroll Lock?
3 Answers
As root, dump the keyboard map to a file
kbdcontrol -d > mykeys
Change the file so "Ctrl+NumLock" will set "Scroll Lock". Find line with scancode "base" 069, or where "nlock" fills the entire line. Edit column 3 from "nlock" to "slock". The line now looks like:
"069 nlock nlock slock nlock nlock nlock nlock nlock O"
As root, issue the command:
kbdcontrol -l mykeys
The solution was found here.
- 2,584
- 7
- 36
- 54
Laptop keyboards usually have a Fn key so that keys on a normal PC keyboard can be replicated. You should find that some combination of Fn and another key (hint: look for the blue text on your keys) will perform Scroll Lock. For instance, on my cheap netbook, Fn-F12 performs Scroll Lock.
- 252,907
I use tmux for that, you can install it from ports under /usr/ports/sysutils/tmux. Ctrl-b PgUp and Ctrl-b PgDn allow to scroll the console output in tmux. BTW, tmux has other great features, basically it is an advanced screen replacement.
- 8,089