Console Flush/CLS for STD?

About Monkey 2 Forums Monkey 2 Programming Help Console Flush/CLS for STD?

This topic contains 2 replies, has 2 voices, and was last updated by  scurty 2 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4431

    scurty
    Participant

    I’m wondering if this could be implemented into the standard namespace.

    It would be useful in terminal applications for refreshed output instead of printing everything on a new line.

    Kinda like in C++

    std::cout.flush();

    I don’t understand how to wrap a cxx file with MX2 yet so forgive me for not just doing this myself. xD

    EDIT: A temporary solution I found is just using

    libc.system("clear")

    #4442

    Mark Sibly
    Keymaster

    Might be a bit tricky as Ted2 console waits for end-of-lines before printing anything.

    But I’ve just added stdout and fflush to libc which may help for ‘real’ apps.

    #4448

    scurty
    Participant

    OMG! That’s exactly what I was looking for! I’ll rebuild on Linux and check it out.

    Best. Support. Ever!

    Thank you so very much Mark!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.