Skip to content

Question: how does the console work? #1578

@marksherman

Description

@marksherman

Hi, everyone! I'm a professor who teaches intro programming using p5.js. The resources you, and the Processing Foundation produce are fantastic! I got my school to donate to the foundation in support. Thank you.

Anyway, my question. I'm trying to reproduce the Console feature from this web editor in other environments and can't nail down the magic is that lets you capture the console output from the user code without getting tangled in the browser's full console. How do you do that capture and redirect?

I figured I'd ask- can someone point me towards how this mechanism works? Of course I'll share anything cool I make with it back to the community.

Thank you,
Mark

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions