gitoriaLog in with ident

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit3dc431083dc43108antcolony#40: mission references point to the moved missionsmre3dc43108/plugins/proc/stdin.hl

806 B

  1. // hl:proc — THE TERMINAL'S OWN INPUT as instance events, the Process pattern
  2. // applied to fd 0:
  3. //
  4. // input = stdin()
  5. // on input.line(text) { … } \\ one typed line, without its newline
  6. // on input.eof() { … } \\ the terminal closed (Ctrl-D)
  7. //
  8. // A joined terminal realm (SPEC "Joining a realm") is what this exists for: the
  9. // peer's entry reads lines here and `emit`s across the edge.
  10. Number #srcId = 0
  11. start() {
  12. #srcId = __native("eventloop.register", __native("proc.stdin"), "__stdinEvent")
  13. return this
  14. }
  15. on __stdinEvent(ev) {
  16. if (ev.eof == true) {
  17. // the closed terminal retires its source, so a program whose only
  18. // source was the keyboard simply ends
  19. __native("eventloop.unregister", #srcId)
  20. emit eof()
  21. return null
  22. }
  23. emit line(ev.line)
  24. return null
  25. }

Branches

Latest commits

  • 3dc43108antcolony#40: mission references point to the moved missionsmre
  • 8d9450fdantcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
  • 205d5fe4gitoria: Hybriel master ff51cf46; ssh keys/tokens no double rows (session sync); gates follow #20mre
  • 9b27cb26gitoria#21: installable app (manifest, service worker, offline start page), own iconmre
  • 68dcb603deploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
  • e2deed6dgitoria#20: "Add code" only on the Code page of an empty repository, no collapsiblemre
  • 8bb97ffddeploy.sh: never send .git or .gitignore to Byrodinmre
  • fd981932State of 2026-09-27; bin/ no longer tracked (Hybriel commit is in README)mre
  • 4a2d7125initial commitmre