this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: apply zig fmt formatting

Amp-Thread-ID: https://ampcode.com/threads/T-b6d69168-29b7-4ebf-b98f-a38a4e95a0db
Co-authored-by: Amp <amp@ampcode.com>

+2 -6
+2 -6
src/tty.zig
··· 41 41 callback: *const fn (context: *anyopaque) void, 42 42 }; 43 43 44 - 45 - 46 44 /// global signal handlers 47 45 var handlers: [8]SignalHandler = undefined; 48 46 var handler_mutex: std.Thread.Mutex = .{}; ··· 72 70 handler_installed = true; 73 71 74 72 const file = std.fs.File{ .handle = fd }; 75 - 73 + 76 74 const self: PosixTty = .{ 77 75 .fd = fd, 78 76 .termios = termios, ··· 233 231 /// mouse event so we can detect which button was released 234 232 last_mouse_button_press: u16 = 0, 235 233 236 - 237 - 238 234 const utf8_codepage: c_uint = 65001; 239 235 240 236 /// The input mode set by init ··· 268 264 return windows.unexpectedError(windows.kernel32.GetLastError()); 269 265 270 266 const file = std.fs.File{ .handle = stdout }; 271 - 267 + 272 268 const self: Tty = .{ 273 269 .stdin = stdin, 274 270 .stdout = stdout,