Hi, everyone! I’m a new comer to zig and trying to build a cli-app with the exciting zig 0.16. Hearing that a lot of efforts are made in 0.16 to both adopt the Io interface and adjust the windows api, I wonder how to get terminal width with these mechanisms?
Current investigation I’ve made: First, I find that `std.os.windows.CONSOLE.USER_IO.INFO.SCREEN_BUFFER` is the struct that defines the screen information. Then, I find that std.os.windows.CONSOLE.USER_IO.GET_SCREEN_BUFFER_INFO wraps `SCREEN_BUFFER` with a `Header` struct, which offers two methods called `operate` and `request`.
So, the question is, how can I get the terminal width with the `Header` struct? Or essentially, how does the operate and request methods work?