-
Notifications
You must be signed in to change notification settings - Fork 1
Kernel Itself
C0deDeveloper edited this page Jul 30, 2023
·
1 revision
By far the simplest one in the entire Wiki.
The kernel initializes the initsystem in the BeforeRun()
Detailed BeforeRun():
- Prints Welcome to falconos
- inits the system which further goes to login manager
The actual running shell stuff in the Run()
which runs in a loop
Detailed Run():
- checks if to go into GUI or no,
If GUI, as of right now its just a test
If console, it starts with printing the shell prefix or
username@falcon:currentdir #
and then loops with its custom text inputter with its own Ctrl+C and shortcuts, and has a little bit of completion with TAB key! - shell execution makes a new shell
- provided by login manager, uses the
asRoot
variable to send the shell whether to run as root or no, (sudo commands are handled differently) - then loops back to the console till shutdown or exit
That's pretty much it! This is by far the simplest one and probably skip this if you are familiar with cosmos itself