Giter VIP home page Giter VIP logo

Comments (4)

tmontes avatar tmontes commented on August 26, 2024

More thoughts:

  • There could be a way of having a task feed data to a process' input, via the PTY.
  • There could be a way of having a task monitor a process' output, again via the PTY.
  • Should there be a trap to "destroy" a spawned process? Or should we go for a more low-level (but more controllable) "send signal" trap?

PS: Copied to first comment to be accounted in issue progress.

from ppytty.

tmontes avatar tmontes commented on August 26, 2024

More thoughts:

  • There could be a way of supporting out of band bidirectional task <-> process communication.
    • Needs to be other than stdin/out/err based (given those are handled by the associated terminal).
    • Maybe pipes could be used.
    • Will we need new traps for that or can existing ones be reused, like message-send / message-wait?

PS: Copied to first comment to be accounted in issue progress.

from ppytty.

tmontes avatar tmontes commented on August 26, 2024

IMPORTANT:

  • Factor out all real I/O calls (like os.write/read, fcntl.fcntl/ioctl) to the kernel hw.py module.

Note:

  • Needs thinking, otherwise, tests running under the "no i/o" test cases fail to "wake" the select via the "child terminated" pipe write.

PS: Copied to first comment to be accounted in issue progress.

from ppytty.

tmontes avatar tmontes commented on August 26, 2024

Closing after merging PR #104.

Follow-up issues regarding terminal input:

  • Fix low-level I/O loop preventing some input from being forwarded to PTYs (#105).
  • Fix cursor visibility across process window focusing (#106).
  • Visually indicate focus changes (#107).

from ppytty.

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.