/// <summary>
 /// Creates a new reader.
 /// </summary>
 public RichTextCommandLineReader()
 {
     Console         = ConsoleProvider.Current;
     HistoryManager  = new ConsoleHistoryManager();
     SyncLock        = new object();
     TabHandler      = new TabKeyHandler();
     SpacebarHandler = new SpacebarKeyHandler();
     KeyHandlers     = new Dictionary <ConsoleKey, IKeyHandler>();
     RegisterHandler(new EnterKeyHandler());
     RegisterHandler(new ArrowKeysHandler());
     RegisterHandler(new HomeAndEndKeysHandler());
     RegisterHandler(new BackspaceAndDeleteKeysHandler());
     RegisterHandler(SpacebarHandler);
     RegisterHandler(TabHandler);
 }
 /// <summary>
 /// Creates a new reader.
 /// </summary>
 public RichTextCommandLineReader()
 {
     Console = ConsoleProvider.Current;
     HistoryManager = new ConsoleHistoryManager();
     SyncLock = new object();
     TabHandler = new TabKeyHandler();
     SpacebarHandler = new SpacebarKeyHandler();
     KeyHandlers = new Dictionary<ConsoleKey, IKeyHandler>();
     RegisterHandler(new EnterKeyHandler());
     RegisterHandler(new ArrowKeysHandler());
     RegisterHandler(new HomeAndEndKeysHandler());
     RegisterHandler(new BackspaceAndDeleteKeysHandler());
     RegisterHandler(SpacebarHandler);
     RegisterHandler(TabHandler);
 }
Esempio n. 3
0
 public RichTextEditor()
 {
     this.HistoryManager = new ConsoleHistoryManager();
     Context = new RichCommandLineContext(this.HistoryManager);
     Context.DisableConsoleRefresh = true;
     Context.Console = new RichTextStateConsole(this);
     TabHandler = new TabKeyHandler();
     SpacebarHandler = new SpacebarKeyHandler();
     KeyHandlers = new Dictionary<ConsoleKey, IKeyHandler>();
     RegisterHandler(new EnterKeyHandler());
     RegisterHandler(new ArrowKeysHandler());
     RegisterHandler(new HomeAndEndKeysHandler());
     RegisterHandler(new BackspaceAndDeleteKeysHandler());
     RegisterHandler(SpacebarHandler);
     RegisterHandler(TabHandler);
 }
 public RichTextEditor()
 {
     this.HistoryManager           = new ConsoleHistoryManager();
     Context                       = new RichCommandLineContext(this.HistoryManager);
     Context.DisableConsoleRefresh = true;
     Context.Console               = new RichTextStateConsole(this);
     TabHandler                    = new TabKeyHandler();
     SpacebarHandler               = new SpacebarKeyHandler();
     KeyHandlers                   = new Dictionary <ConsoleKey, IKeyHandler>();
     RegisterHandler(new EnterKeyHandler());
     RegisterHandler(new ArrowKeysHandler());
     RegisterHandler(new HomeAndEndKeysHandler());
     RegisterHandler(new BackspaceAndDeleteKeysHandler());
     RegisterHandler(SpacebarHandler);
     RegisterHandler(TabHandler);
 }