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; }
private void ResetLayoutCache() { LayoutCache = LineCache.Caret; }
static TestData() { PackageAssets = new LineCache(Path.Combine("TestData", "PackageAssets.csv")); }