this repo has no description
13
fork

Configure Feed

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

posix: update type and fn signatures for api changes

+10 -10
+10 -10
src/tty.zig
··· 63 63 }, 64 64 .flags = 0, 65 65 }; 66 - try posix.sigaction(posix.SIG.WINCH, &act, null); 66 + posix.sigaction(posix.SIG.WINCH, &act, null); 67 67 handler_installed = true; 68 68 69 69 const self: PosixTty = .{ ··· 97 97 }, 98 98 .flags = 0, 99 99 }; 100 - posix.sigaction(posix.SIG.WINCH, &act, null) catch {}; 100 + posix.sigaction(posix.SIG.WINCH, &act, null); 101 101 } 102 102 103 103 /// Write bytes to the tty ··· 187 187 /// Get the window size from the kernel 188 188 pub fn getWinsize(fd: posix.fd_t) !Winsize { 189 189 var winsize = posix.winsize{ 190 - .ws_row = 0, 191 - .ws_col = 0, 192 - .ws_xpixel = 0, 193 - .ws_ypixel = 0, 190 + .row = 0, 191 + .col = 0, 192 + .xpixel = 0, 193 + .ypixel = 0, 194 194 }; 195 195 196 196 const err = posix.system.ioctl(fd, posix.T.IOCGWINSZ, @intFromPtr(&winsize)); 197 197 if (posix.errno(err) == .SUCCESS) 198 198 return Winsize{ 199 - .rows = winsize.ws_row, 200 - .cols = winsize.ws_col, 201 - .x_pixel = winsize.ws_xpixel, 202 - .y_pixel = winsize.ws_ypixel, 199 + .rows = winsize.row, 200 + .cols = winsize.col, 201 + .x_pixel = winsize.xpixel, 202 + .y_pixel = winsize.ypixel, 203 203 }; 204 204 return error.IoctlError; 205 205 }