src/Environment/Unix/Listener.php
public function start()
    {
        $this->eventDispatcher->addListener(
            'key:stop:listening',
            function () {
                $this->isListening = false;
            }
        );

        $this->resetListener()
            ->overrideReadlineHandler()
            ->runLoop()
            ->restoreReadlineHandler();
    }
public function start()
    {
        $this->eventDispatcher->addListener(
            'key:stop:listening',
            function () {
                $this->isListening = false;
            }
        );

        $this->resetListener()
            ->overrideReadlineHandler()
            ->runLoop()
            ->restoreReadlineHandler();
    }
Initiates the listener