Exemplo n.º 1
0
 protected LuaConsoleOptions(ConsoleOptions options)
     : base(options)
 {
     var luaOptions = options as LuaConsoleOptions;
     if (luaOptions != null)
     {
         SkipFirstSourceLine = luaOptions.SkipFirstSourceLine;
     }
 }
Exemplo n.º 2
0
        protected virtual IConsole CreateConsole(ScriptEngine engine, CommandLine commandLine, ConsoleOptions options)
        {
            ContractUtils.RequiresNotNull(options, nameof(options));

            if (options.TabCompletion)
            {
                return(CreateSuperConsole(commandLine, options.ColorfulConsole));
            }

            return(new BasicConsole(options.ColorfulConsole));
        }