id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
4443	TIOCSWINSZ ioctl loses extended pixel sizes (ws_xpixel, ws_ypixel) even when the underlying shell supports it	arcivanov		"$ mc --version
GNU Midnight Commander 4.8.28
Built with GLib 2.73.2
Built with S-Lang 2.3.2 with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

$ bash --version
GNU bash, version 5.2.15(1)-release (x86_64-redhat-linux-gnu)

Test script:

{{{
#!/usr/bin/env python3
import ctypes
import termios
import fcntl
from ctypes import Structure, c_ushort

class WinSize(Structure):
     _fields_ = [(""ws_row"", c_ushort),
                 (""ws_col"", c_ushort),
                 (""ws_xpixel"", c_ushort),
                 (""ws_ypixel"", c_ushort)
                 ]

sz = WinSize()
fcntl.ioctl(0, termios.TIOCGWINSZ, sz)
print(sz.ws_row, sz.ws_col, sz.ws_xpixel, sz.ws_ypixel)
}}}


Running the above script with Python 3.10.9 with MC I get:
>>> 44 206 0 0

Exiting MC to the undelying shell I get:
>>> 44 206 1651 752
"	defect	new	major	Future Releases	mc-tty	master						no branch	
