Permalink
Browse files

Clear the console on first run. When exiting, don't clear/reprint the…

… screen.

svn path=/trunk/tsunami/; revision=114780
  • Loading branch information...
1 parent 57af3ec commit d6ea421ff48bd38478ed1c7e6124e4e66b8f3541 @alanmcgovern alanmcgovern committed Oct 3, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/TrackerHost.cs
View
4 src/TrackerHost.cs
@@ -69,6 +69,7 @@ public TrackerHost()
public void Run()
{
string s;
+ Console.Clear();
context.Print(Console.Out);
Console.Out.WriteLine();
@@ -85,6 +86,9 @@ private bool Process(string s)
if (s != "__RefreshTheScreen__")
r = context.Handle(s) != Result.ShouldPop;
+ if (!r)
+ return r;
+
Console.Clear();
context.Print(Console.Out);
Console.Out.WriteLine();

0 comments on commit d6ea421

Please sign in to comment.