예제 #1
0
        public ConsoleRepl()
        {
            HasInteractiveConsole = ConsoleHelper.HasInteractiveConsole;
            Prompt.Append(">>> ");
            _stackIndex        = -1;
            History            = new List <string>();
            ExitOnNextEval     = false;
            PendingTextToEnter = new Queue <string>();
            _keys = new BlockingCollection <ConsoleKeyInfo>();

            if (HasInteractiveConsole)
            {
                Console.TreatControlCAsInput = true;
                Console.CursorVisible        = true;
            }
        }