Skip to content

REFACTOR: Shell uses TTY reference#232

Draft
riblanc wants to merge 1 commit into
ri/tty/serialfrom
ri/shell/tty-ref
Draft

REFACTOR: Shell uses TTY reference#232
riblanc wants to merge 1 commit into
ri/tty/serialfrom
ri/shell/tty-ref

Conversation

@riblanc

@riblanc riblanc commented Feb 27, 2026

Copy link
Copy Markdown
Collaborator

Refactor Shell.zig:

  • Replace separate reader/writer fields with a single tty: *TtyStruct
  • reader() and writer() are now inline computed getters
  • All existing shell.writer/reader usage updated to shell.writer()/reader()

Updated calls:

  • kernel.zig: pass tty.get_tty() instead of reader/writer
  • ci.zig: pass ttyS0's TtyStruct pointer
  • ci/shell.zig, ci/builtins.zig: shell.writer() calls
  • default/shell.zig, default/builtins.zig: shell.writer() calls
  • utils.zig: shell.writer() calls

Depends-on: #231

@riblanc riblanc added this to the kfs-6 milestone Feb 27, 2026
@riblanc riblanc self-assigned this Feb 27, 2026
@riblanc riblanc added rework This does the same as before but cleaner shell labels Feb 27, 2026
@mergify

mergify Bot commented Feb 27, 2026

Copy link
Copy Markdown

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 ⛓️ Depends-On Requirements

Waiting for

This rule is failing.

Requirement based on the presence of Depends-On in the body of the pull request

@riblanc riblanc force-pushed the ri/tty/serial branch 2 times, most recently from a240525 to cdb6d30 Compare February 27, 2026 17:45
@riblanc riblanc changed the title REFACTOR: Shell uses TTY reference, add stty/lschar builtins REFACTOR: Shell uses TTY reference, add lschar builtins Feb 27, 2026
@riblanc riblanc force-pushed the ri/shell/tty-ref branch from 4ab4bf4 to 1ae9dbd Compare March 6, 2026 17:58
@riblanc riblanc force-pushed the ri/shell/tty-ref branch from 8236d2f to 4ec0e27 Compare May 11, 2026 00:18
Refactor Shell.zig:
- Replace separate reader/writer fields with a single tty: *TtyStruct
- reader() and writer() are now inline computed getters
- All existing shell.writer/reader usage updated to shell.writer()/reader()

Updated call sites:
- kernel.zig: pass tty.get_tty() instead of reader/writer
- ci.zig: pass ttyS0's TtyStruct pointer
- ci/shell.zig, ci/builtins.zig: shell.writer() calls
- default/shell.zig, default/builtins.zig: shell.writer() calls
- utils.zig: shell.writer() calls
@riblanc riblanc force-pushed the ri/shell/tty-ref branch from 4ec0e27 to 7e2a37a Compare May 11, 2026 00:19
@riblanc riblanc changed the title REFACTOR: Shell uses TTY reference, add lschar builtins REFACTOR: Shell uses TTY reference May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rework This does the same as before but cleaner shell

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant