diff options
| author | Miguel <m.i@gmx.at> | 2018-10-17 02:39:56 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-10-17 02:39:56 +0200 |
| commit | 474c803c32fe055b4f09cb779f22b70d7eba8325 (patch) | |
| tree | fda4241ebd53688c17379a9dd11b111c5bf5e7a0 /userspace/init.c | |
| parent | 39f271589fb9db3d6a383857817b13a9bb59d981 (diff) | |
screen areas invalidation
Diffstat (limited to 'userspace/init.c')
| -rw-r--r-- | userspace/init.c | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/userspace/init.c b/userspace/init.c index 4c55a12..e1ab531 100644 --- a/userspace/init.c +++ b/userspace/init.c @@ -6,8 +6,28 @@ char *env1[]={"HOME=/home/miguel","PS1=\033[34m$\033[37m","PWD=/home/miguel","PA int main(int argc, char **argv) { - _execve("/bin/xterm",argv1,env1); - while(1); // never reached hopefully + execve("/bin/xterm",argv1,env1); + /* + + int pid=fork(); + + if(!pid) + { + execve("/bin/xterm",argv1,env1); + } + else + { + while(1) + { + _gui_win(); + vesa_init(0); + void *tty=terminal_init_vesa(); + getchar(); + terminal_put('X'); + } + + } + */ } /* |
