tape-kernel 1.0
a modular modern independent kernel
Loading...
Searching...
No Matches
shell.h File Reference
#include "../lib/types.h"
Include dependency graph for shell.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define shell   __shell

Functions

void __shell (void *mb_info)
 shell is the interactive kernel command shell

Macro Definition Documentation

◆ shell

#define shell   __shell

Definition at line 4 of file shell.h.

Referenced by ___kmain().

Function Documentation

◆ __shell()

void __shell ( void * mb_info)

shell is the interactive kernel command shell

shell is a function that runs an infinite loop displaying the tape prompt and processing user commands

Parameters
mb_info,themultiboot info pointer passed from kmain for memory queries

shell supports the following commands: help, clear, ls, read, write, rm, echo, reboot, alloc, heap, panic, and info

using shell is done with

#include "../usr/shell.h" //or just shell.h
shell(mb_info);
#define shell
Definition shell.h:4
See also
kmain(), show_help(), cmd_arena

Definition at line 182 of file shell.c.

References atoi(), clscr, cmd_alloc(), cmd_arena, cmd_readfile(), cmd_writefile(), cnb, cob, disksize, editor, fsdelete, fsfind, fslist, getcpu, lines, MAX_ARGS, memsize, NORETURN, panic, pargs(), prt, prtd, prth, rdln, reboot, res, scrl, show_help(), strcmp(), and strlen().