1
0
Fork 0
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:
Jonas 'Sortie' Termansen 2011-08-27 23:03:39 +02:00
parent 2f9d08a800
commit 34e9ca277d
15 changed files with 189 additions and 2 deletions

15
utils/init.cpp Normal file
View 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;
}