From 939e6a8837b6c5926b44937d1489a5f07f91c28a Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 28 Feb 2008 19:13:04 +0000 Subject: clear tty2 after shell is killed --- mdk-stage1/stage1.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') 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 -- cgit v1.2.1