fix examples to work with updated writer api
Update multiple examples to work with the new Tty.init() API that requires
a buffer parameter and fix related writer interface issues.
Changes:
- Add buffer parameter to Tty.init() calls in cli.zig, image.zig, vaxis.zig,
view.zig, and vt.zig
- Fix anyWriter() method signatures in tty.zig to accept const pointers
- Update App.zig in vxfw framework to handle buffer allocation
- Replace bufferedWriter usage pattern in view.zig with direct anyWriter calls
- Fix const-related writer interface issues
Most examples now compile successfully with the new Writer API. Some examples
like counter.zig and scroll.zig have additional issues with ArrayList API
changes that are unrelated to the Writer modifications.
Amp-Thread-ID: https://ampcode.com/threads/T-04d58023-ce84-479f-8974-6c8fad9ce9e5
Co-authored-by: Amp <amp@ampcode.com>