From 4728809c00fbd9e2ccf8015f5a018f0ab7efcbd2 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 12 Aug 2011 17:29:45 +0200 Subject: [PATCH] The serial terminal now clears the screen using ANSI when initialized. --- sortix/serialterminal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sortix/serialterminal.cpp b/sortix/serialterminal.cpp index ee1c4ec5..0d630640 100644 --- a/sortix/serialterminal.cpp +++ b/sortix/serialterminal.cpp @@ -34,8 +34,8 @@ namespace Sortix { void Reset() { - // Set the cursor to (0,0) - const char InitMessage[] = "\e[H"; + // Set the cursor to (0,0) and clear the screen. + const char InitMessage[] = "\e[m\e[2J\e[H"; UART::Write(InitMessage, Maxsi::String::Length(InitMessage)); }