Skip to content

Support console.clear(). Addresses #11. - #13

Closed
matthewleon wants to merge 1 commit into
purescript:masterfrom
matthewleon:clear
Closed

matthewleon wants to merge 1 commit into
purescript:masterfrom
matthewleon:clear

Conversation

@matthewleon

Copy link
Copy Markdown

No description provided.

@paf31

paf31 commented Mar 16, 2017

Copy link
Copy Markdown
Contributor

@andyarvanitis @nwolverson Any thoughts on this with regards to alternative backends?

@nwolverson

Copy link
Copy Markdown

Erlang - could be supported in some circumstances via control codes depending on your terminal. Don't see a problem with such a function which may be NOOP depending on your platform, it's not like the appearence of everything else is tightly specified.

@matthewleon

Copy link
Copy Markdown
Author

@paf31 I think that on node it will trigger a runtime error. Perhaps I should modify the JS code to suppress this?

@andyarvanitis

Copy link
Copy Markdown

There's no standard way to do this in the C world. As mentioned, a no-op is possible, but I'd suggest keeping it out of this package and maybe creating a separate platform-specific console package.

@matthewleon

Copy link
Copy Markdown
Author

@andyarvanitis I'm happy to do that.

@matthewleon

Copy link
Copy Markdown
Author

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.

4 participants