a modern tui library written in zig

tty: align TestTty init signature with PosixTty

TestTty init function was missing the buffer parameter that PosixTty
requires. Update TestTty.init to accept a buffer: []u8 parameter to
match the consistent interface pattern used by PosixTty.

This ensures both TTY implementations have compatible initialization
signatures for polymorphic usage.

Amp-Thread-ID: https://ampcode.com/threads/T-970f3138-9911-4509-9c12-cd008b09aa0d
Co-authored-by: Amp <amp@ampcode.com>

rockorager.dev 70fe0a4a 686d806f

verified
Changed files
+1 -1
src
+1 -1
src/tty.zig
··· 733 733 writer: *std.io.Writer.Allocating, 734 734 735 735 /// Initializes a TestTty. 736 - pub fn init() !TestTty { 736 + pub fn init(buffer: []u8) !TestTty { 737 737 if (builtin.os.tag == .windows) return error.SkipZigTest; 738 738 const list = try std.testing.allocator.create(std.io.Writer.Allocating); 739 739 list.* = .init(std.testing.allocator);