static void Main() { LineEditor le = new LineEditor ("foo"); string s; while ((s = le.Edit ("shell> ", "")) != null){ Console.WriteLine ("----> [{0}]", s); } }