Code Monkey home page Code Monkey logo

Comments (3)

McParen avatar McParen commented on May 28, 2024

Hello,

the gray streams interface which allows windows to be treated as streams allows you to use the standard function "open-stream-p":

"It is true if its argument (which must be a stream) is open, and otherwise is false. A stream is always created open; it remains open until closed with the close function."

Which is exactly what youre looking for.

Sadly, it does not work in the current code yet. I never used open-stream-p myself before, so I have not tested it properly. Fortunately, it seems to be very easy to fix, and I will push the fix to the repository in the next few days.

from croatoan.

D4ryus avatar D4ryus commented on May 28, 2024

Sounds good, thank you!

from croatoan.

McParen avatar McParen commented on May 28, 2024

close now sets a flag for open-stream-p to test whether windows have been closed.

It for now works only for window objects, not for its subclasses. I have to look more closely how to pass this flag to the subclasses efficiently.

from croatoan.

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.