A NOTE has been added to this issue. ====================================================================== http://austingroupbugs.net/view.php?id=1151 ====================================================================== Reported By: Clausecker Assigned To: ====================================================================== Project: 1003.1(2016)/Issue7+TC2 Issue ID: 1151 Category: System Interfaces Type: Enhancement Request Severity: Editorial Priority: normal Status: New Name: Robert Clausecker Organization: Fraunhofer Fokus User Reference: Section: termios.h, signal.h, 2.4.3 "Signal Actions", 11.2 "Parameters that Can be Set", new sections tcgetsize and tcsetsize Page Number: 414, 333, 494, 212 Line Number: 13877, 11115, 16845–16879, 7040 Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2017-06-19 16:41 UTC Last Modified: 2017-06-19 17:32 UTC ====================================================================== Summary: Introduce new signal SIGWINCH and functions tcsetsize(), tcgetsize() to get/set terminal window size ======================================================================
---------------------------------------------------------------------- (0003786) shware_systems (reporter) - 2017-06-19 17:32 http://austingroupbugs.net/view.php?id=1151#c3786 ---------------------------------------------------------------------- Extensions to termios.h ======================= A new subsection named "The winsize_t structure" is added to the header termios.h right after the section "The termios structure." The type "unsigned short" follows historical convention. Perhaps the committee wishes to instead introduce appropriate integer types for the structure members instead. This might be useful for implementations aiming to support terminals with more than 65535 horizontal or vertical pixels. The winsize_t Structure --------------------- The <termios.h> header shall define the winsize_t structure, which shall include at least the following members: unsigned long ws_row rows, in characters. unsigned long ws_col columns, in characters. [XSI] or [UP] unsigned long ws_xpixel horizontal size, in pixels, if supported. unsigned long ws_ypixel vertical size, in pixels, if supported. [x] In all members named in this volume of POSIX.1 2008, a value of 0 shall indicate that the value is unknown. === Additional edits after as winsize an app reserved identifier, *_t standard reserved. Use of termios as a type identifier a grandfathered allowance. Changed to long as display arrays can have now over 65k chars or pixels easily enough with UHD 4k resolutions, yet be logically a single terminal. Option group added as base POSIX will still only require support for char array or line oriented devices, not pixel or vector based. This was part of Bug 1053 discussion. Moving any added support for vectors or pixels to the base is an Issue 9 matter. Errors for tcsetsize() is missing ENOSUP as a 'may fail' entry, also discussed, for terminals that have fixed dimensions. Believe additional text related to LINES and COLUMNS env. variables also desirable. Issue History Date Modified Username Field Change ====================================================================== 2017-06-19 16:41 Clausecker New Issue 2017-06-19 16:41 Clausecker File Added: sigwinch-proposal.txt 2017-06-19 16:41 Clausecker Name => Robert Clausecker 2017-06-19 16:41 Clausecker Organization => Fraunhofer Fokus 2017-06-19 16:41 Clausecker Section => termios.h, signal.h, 2.4.3 "Signal Actions", 11.2 "Parameters that Can be Set", new sections tcgetsize and tcsetsize 2017-06-19 16:41 Clausecker Page Number => 414, 333, 494, 212 2017-06-19 16:41 Clausecker Line Number => 13877, 11115, 16845–16879, 7040 2017-06-19 17:32 shware_systems Note Added: 0003786 ======================================================================