File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -266,14 +266,18 @@ static void Close_Stdio(void)
266
266
*/ DEVICE_CMD Query_IO (REBREQ * req )
267
267
/*
268
268
** Resolve port information. Currently just size of console.
269
+ ** Note: Windows console have BUFFER size, which may be bigger than
270
+ ** visible window size. There seems to be nothing like it on POSIX,
271
+ ** so the `buffer-size` info is reported same as `window-info`
269
272
**
270
273
***********************************************************************/
271
274
{
272
275
struct winsize w ;
273
276
ioctl (STDOUT_FILENO , TIOCGWINSZ , & w );
274
277
req -> console .window_rows =
275
278
req -> console .buffer_rows = w .ws_row ;
276
- req -> console .window_cols = w .ws_col ;
279
+ req -> console .window_cols =
280
+ req -> console .buffer_cols = w .ws_col ;
277
281
return DR_DONE ;
278
282
}
279
283
You can’t perform that action at this time.
0 commit comments