public void Initialize(ICommandLineConsole commandLineConsole, IObservable <CommandLineTextAddedEvent> textAdded)
        {
            _commandLineConsole = commandLineConsole;

            // Seed initial ASCII art
            _commandLineConsole.AddText(
                "initialize",
                "",
                "   ROFL:ROFL:ROFL:ROFL",
                "         ___^___ _",
                " L    __/      [] \\  ",
                "LOL===__           \\ ",
                " L      \\___ ___ ___]",
                "              I   I",
                "          ----------/",
                "");

            textAdded
            .Select(e => e.Text)
            .Subscribe(AppendText)
            .DisposeWith(this);

            Observable
            .Interval(TimeSpan.FromMilliseconds(500))
            .Subscribe(_ => ToggleCursor())
            .DisposeWith(this);
        }
Exemple #2
0
 public void Initialize(IHackerPacketQueue queue, ICommandLineConsole commandLineConsole)
 {
     _queue = queue;
     _commandLineConsole = commandLineConsole;
 }