mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Added a shell, a few programs, and added support for SIGINT.
This commit is contained in:
parent
2f9d08a800
commit
34e9ca277d
15 changed files with 189 additions and 2 deletions
15
utils/init.cpp
Normal file
15
utils/init.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <stdio.h>
|
||||
#include <libmaxsi/process.h>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
// Reset the terminal's color and the rest of it.
|
||||
printf("\e[m\e[J");
|
||||
|
||||
const char* programname = "sh";
|
||||
const char* newargv[] = { programname };
|
||||
|
||||
Maxsi::Process::Execute(programname, 1, newargv);
|
||||
|
||||
return 1;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue