Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pipeviewer (pv) and shell colors #62

Open
abkslm opened this issue Sep 9, 2024 · 1 comment
Open

Add pipeviewer (pv) and shell colors #62

abkslm opened this issue Sep 9, 2024 · 1 comment

Comments

@abkslm
Copy link

abkslm commented Sep 9, 2024

pv (Pipe Viewer) is a "terminal-based tool for monitoring the progress of data through a pipeline" (a-j-wood/pv/README.md). We propose creating a simpler analogue of pv to use as a progress bar for future programs within FogOS.

We also propose adding a switch for coloring of the FogOS shell, to enable a fun "rainbow" mode, where each output is generated as a sequence of ROY-G-BIV (for example, the first output would be red, second would be orange, etc). This is just for funsies (we propose psh or Pride Shell as a name for this mode).

Files added/modified:

  • We will need to create a file user/pv.c, which will likely need to include types.h, stat.h, and user.h. No existing header files will need to be updated (most likely).
    • pv will be massively simplified compared to the widely-available version, in part because xv6 has very limited library support compared to Linux systems.
  • We will need to modify user/sh.c to use a counter and an array of ANSI color codes to produce the rainbow output.

Team: Andrew B. Moore, Athene Marston

@malensek
Copy link
Contributor

Sounds great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants