Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add terminal()->clear() method. #107

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

xiCO2k
Copy link
Collaborator

@xiCO2k xiCO2k commented Dec 8, 2021

This PR adds a function to allow the terminal to be cleared.

Example:

use function Termwind\{render, terminal};

terminal()->clear();

render(<<<'HTML'
    <div class="my-2 mx-2 w-full bg-green-500 font-bold text-black text-center">
        Now there is a capability to clear the "messy" terminal screen
    </div>
HTML);

Before:

image

After:

image

@nunomaduro
Copy link
Owner

Can you document this, and all terminal features in this PR?

@xiCO2k
Copy link
Collaborator Author

xiCO2k commented Dec 8, 2021

done ;)

@nunomaduro nunomaduro merged commit 5dae69d into nunomaduro:master Dec 8, 2021
@xiCO2k xiCO2k deleted the feat/clear branch January 26, 2022 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants