diff options
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/stage1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 6b7bb0ab5..5540e48f4 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -368,9 +368,11 @@ void finish_preparing(void) #ifdef SPAWN_SHELL if (shell_pid != 0) { int fd; + const char *clear = "\033[H\033[J"; kill(shell_pid, 9); - fd = open("/dev/tty2", O_RDWR); log_message("killed shell"); + fd = open("/dev/tty2", O_RDWR); + write(fd, clear, strlen(clear)); close(fd); } #endif |