The purpose of this homework was to practice understanding of the
kernel/console.c and kernel/kbd.c files. The task was to show a custom
table for choosing the color of the output text on the console.
Table appears and dissappears with the click of ALT+C (for Mac users: Option+C).
While the table is showing, the input to the console is disabled.
Only moving through the table is allowed:
- 'w' - go up
- 's' - go down
The final choice is the one that is selected when the table dissappears.
The options in the table are:
- WHT BLK (white on black)
- PUR WHT (purple on white)
- RED AQU (red on aqua)
- WHT YEL (white on yellow)
Makefile given in this repo is the one one configured so the xv6 works on Macs
with M1 chip. After cloning this repo to M1 Mac, run these commands in terminal:
brew install qemu
brew install x86_64-elf-gcc
Create a .bash_profile that contains additional variables for running xv6.
cd ~/
touch .bash_profile
open -e .bash_profile
Add these commands to your .bash_profile file:
export TOOLPREFIX=x86_64-elf-
export QEMU=qemu-system-x86_64
Finally, run the file:
source .bash_profile
After cmpleting this, you can go into the cloned repo and start the xv6 with
make qemu