Git Product home page Git Product logo

xv6_table_colors's Introduction

Homework 1 for Uni

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:

  1. 'w' - go up
  2. 's' - go down
    The final choice is the one that is selected when the table dissappears.

The options in the table are:

  1. WHT BLK (white on black)
  2. PUR WHT (purple on white)
  3. RED AQU (red on aqua)
  4. WHT YEL (white on yellow)

Important - Makefile is for M1 Macs

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

xv6_table_colors's People

Contributors

irinatomic avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.