Beispiel #1
0
 public PromptRecognizer(AbstractTerminal term)
 {
     _terminal = term;
     _commandBuffer = new StringBuilder();
     ITerminalSettings ts = term.TerminalHost.TerminalSettings;
     ts.AddListener(this);
     _promptExpression = new Regex(ts.ShellScheme.PromptExpression, RegexOptions.Compiled); //これはシェルにより可変
     _listeners = new List<IPromptProcessor>();
     _lineCache = new LineCache(PromptRecognizerPreferences.Instance.PromptSearchMaxLines);
     _lastCachedLineID = -1;
 }
        public PromptRecognizer(AbstractTerminal term)
        {
            _terminal      = term;
            _commandBuffer = new StringBuilder();
            ITerminalSettings ts = term.TerminalHost.TerminalSettings;

            ts.AddListener(this);
            _promptExpression = new Regex(ts.ShellScheme.PromptExpression, RegexOptions.Compiled); //これはシェルにより可変
            _listeners        = new List <IPromptProcessor>();
            _lineCache        = new LineCache(PromptRecognizerPreferences.Instance.PromptSearchMaxLines);
            _lastCachedLineID = -1;
        }
Beispiel #3
0
 private void ResetLayoutCache()
 {
     LayoutCache = LineCache.Caret;
 }
Beispiel #4
0
 static TestData()
 {
     PackageAssets = new LineCache(Path.Combine("TestData", "PackageAssets.csv"));
 }
Beispiel #5
0
		private void ResetLayoutCache()
		{
			LayoutCache = LineCache.Caret;
		}