tempestphp / tempest-framework

The PHP framework that gets out of your way 🌊
https://tempestphp.com
MIT License
1.1k stars 76 forks source link

[Bug]: Interactive CLI screen isn't properly cleared when rerendered #574

Open brendt opened 1 month ago

brendt commented 1 month ago

Tempest Version

1.0-alpha1

PHP Version

8.3

Operating System

MacOS

Description

See https://github.com/tempestphp/tempest-framework/pull/513#issuecomment-2407466902 as an example

Steps to Reproduce


    #[ConsoleCommand('interactive:ask')]
    public function ask(): void
    {
        $answer = $this->console->ask('Hello?');

        $this->console->writeln();

        $this->console->success($answer);
    }

Only happens when there's an empty line written before

brendt commented 1 month ago

https://github.com/tempestphp/tempest-framework/pull/576

brendt commented 1 month ago

Not fixed: try with cache:clear and select two cached