GithubHelp home page GithubHelp logo

Comments (3)

jacereda avatar jacereda commented on June 11, 2024 1

Maybe a SYSTEM_FLAG to opt-in as I suggested in #611 (comment)

from wasm4.

LunaAmora avatar LunaAmora commented on June 11, 2024

Yeah, i would prefer to have both versions as one without a newline would facilitate printing various stuff in the same line (in my case, cause I like creating toy Langs, so i would have to implement string buffers first if i would like to print stuff that is more complex). But when i asked why it was this way, @aduros said on discord:
"Yeah, the intent was to have a drop in replacement for console.log() for debugging, and not fully expose stdout"

So i guess it is intended to not support this :/

from wasm4.

Ruulul avatar Ruulul commented on June 11, 2024

it is possible tho to use ANSI control codes to print on the line above, move the cursor, clear the terminal...
https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797

came pretty handy on debugging real time information to me

from wasm4.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.