Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Console mode #27

Closed
butschster opened this issue Oct 29, 2021 · 0 comments
Closed

Console mode #27

butschster opened this issue Oct 29, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@butschster
Copy link
Member

butschster commented Oct 29, 2021

Add ability to switch default UI to console mode. https://xtermjs.org/

$output = new WebsocketOutput($this->output);

use Symfony\Component\Console\Output\Output;
use Symfony\Component\Console\Output\OutputInterface;

class BrowserOutput extends Output
{
    public function __construct(private OutputInterface $output)
    {
        parent::__construct();
    }

    public function write($messages, bool $newline = false, int $options = self::OUTPUT_NORMAL)
    {
        $this->output->write($messages, $newline, $options);
        parent::write($messages, $newline, $options);
    }

    protected function doWrite(string $message, bool $newline)
    {
        dump('broadcast');
    }
}

Icon for a button for terminal
https://seekicon.com/free-icon/terminal_9

@butschster butschster created this issue from a note in GUI (To do) Oct 29, 2021
@butschster butschster added the enhancement New feature or request label Oct 29, 2021
@butschster butschster added this to the 2.0 milestone Oct 29, 2021
@butschster butschster moved this from To do to In progress in GUI Oct 30, 2021
butschster added a commit that referenced this issue Oct 31, 2021
- replaced button icon
- fixed problem with reopen page with a terminal

issue #27
GUI automation moved this from In progress to Done Oct 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
GUI
Done
Development

No branches or pull requests

2 participants