Skip to content

fix(examples): use tty.writer() flush call in text_view#313

Merged
rockorager merged 1 commit intorockorager:mainfrom
nowaymyname27:fix/examples-text-view-writer-flush
Mar 21, 2026
Merged

fix(examples): use tty.writer() flush call in text_view#313
rockorager merged 1 commit intorockorager:mainfrom
nowaymyname27:fix/examples-text-view-writer-flush

Conversation

@nowaymyname27
Copy link
Contributor

Summary

  • update examples/text_view.zig to call tty.writer().flush() instead of tty.writer.flush()
  • fixes the Zig 0.15.2 compile-time API mismatch in the text_view example

Testing

  • manually reproduced failure before fix (no field named 'writer' in struct 'tty.PosixTty')
  • zig build example -Dexample=text_view now reaches runtime and fails opening /dev/tty in this non-interactive environment (expected here)

@rockorager rockorager merged commit 3d37f04 into rockorager:main Mar 21, 2026
4 checks passed
@rockorager
Copy link
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants