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

evy: Add cls function #146

Merged
merged 2 commits into from
Jun 18, 2023
Merged

evy: Add cls function #146

merged 2 commits into from
Jun 18, 2023

Conversation

juliaogris
Copy link
Member

Add cls function to clear the screen. It might be useful in text based
games.

Sneak in a slight sample file re-org.

@github-actions
Copy link

github-actions bot commented Jun 16, 2023

firebase-deployment: https://evy-lang--146-sab39wnl.web.app (6268c56)

Copy link
Member

@camh- camh- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the name cls - as you can see from the windows command you implemented, it has some history, actually going back to BASIC. But if you do want to change it, that's fine too.

🥝

func (*cliRuntime) Cls() {
cmd := exec.Command("clear")
if runtime.GOOS == "windows" {
cmd = exec.Command("cmd", "/c", "cls")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍍 So very diligent!

Move draw.evy sample to interact section as this new "interaction"
section seems like a better match than animation. This was just an
oversight during previous reorganisation.
Add `cls` function to clear the screen. It might be useful in text based
games.
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.

2 participants