gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit20fe13fa20fe13fagitoria#33: centralize login and tickets connection statemre20fe13fa/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

  • 20fe13fagitoria#33: centralize login and tickets connection statemre
  • 859754c0gitoria#29: retain the offline note and record the framework gapmre
  • d140bc04gitoria#30: reproduce the upsert ordering constraintmre
  • 6960e8f8gitoria#28: keep form values in bound component membersmre
  • 0db27200gitoria#32: share character checks and environment lookupmre
  • 452f6a1amission W60: logic clean-upsmre
  • 1448c899log: cleanup, #49 GPTBot, tracker mentions on #36mre
  • fcf95936log: v1.5.1 provenmre
  • 22105420log: W51b livemre
  • 7e8aabeareport: W51b pull source verificationmre
  • 6c18de76fix: preserve pull sources across containing branchesmre
  • fc36fa2elog: W51b pull source bugmre
  • 56bc1220log: v1.5.1 livemre
  • 845fc0aareport: W51mre
  • 83127391fix: return v1.5.1 app and merge error detailsmre
  • b07d0e97log: W51 v1.5.1 startedmre
  • 0b417d06docs: apps-api v1.5 user tokens (#48, W49)mre
  • d046940alog: vinzenz contract note sentmre
  • db443456log: vinzenz note retry 2mre
  • 802f229alog: kunibert repo ping provenmre