Command Line Speech Recognition event handler issue
<p>I have this command line software that listens for speech recognition for couple of words.</p>

<p>In the main function I have this event handler:</p>

<pre><code>speechRecognitionEngine.SpeechRecognized += 
      new EventHandler&lt;SpeechRecognizedEventArgs&gt;(engine_SpeechRecognized);
</code></pre>

<p>and the function:</p>

<pre><code>public static void engine_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
     Console.WriteLine("\r" + getKnownTextOrExecute(e.Result.Text));
}
</code></pre>

<p>What can I do in the main function to keep the command line open and printing the words from the event handler ?</p>

<p>Thanks.</p>
