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:                     Resolved
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:        See
http://austingroupbugs.net/view.php?id=1151#c3856 
Resolution:                 Accepted As Marked
Fixed in Version:           
====================================================================== 
Date Submitted:             2017-06-19 16:41 UTC
Last Modified:              2017-10-20 20:16 UTC
====================================================================== 
Summary:                    Introduce new signal SIGWINCH and functions
tcsetsize(), tcgetsize() to get/set terminal window size
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0001053 Add a "size" mode to stty(1)
====================================================================== 

---------------------------------------------------------------------- 
 (0003864) egmont (reporter) - 2017-10-20 20:16
 http://austingroupbugs.net/view.php?id=1151#c3864 
---------------------------------------------------------------------- 
Allow me please to share a few thoughts/questions regarding
ws_xpixel/ws_ypixel. I'm glad these didn't make it to the standard for now;
if you ever plan to add them then please get back here and consider these
issues.

- Most graphical terminal emulators have some padding (usually 1px) around
the character cells. This is I believe both for aesthetical reasons as well
better/easier handling of mouse dragging moving outside the area etc.
Rxvt-unicode, pterm (putty) and st (suckless) set ws_[xy]pixel without this
value, xterm add the padding too. Which one should be the right behavior
and why?

- xterm actually does not only add the padding, but also the scrollbar's
width to ws_xpixel. Is this correct then?

- How about other graphical elements? E.g. what if xterm had a tab bar
(like gnome-terminal, konsole etc. have), should it add that too? What if
it used CSD (client-side window decoration), would that also count?

- If the answer was "yes" throughout the previous questions, how about
tiling (a.k.a. paned) emulators such as Terminator and Tilix?

- If it's only the cell's pixels (not even the padding) then what's the
point in storing the entire window's dimensions and worrying about 16-bit
overflow, rather than introducing new fields for a single cell's dimensions
(as shorts)?

- Continuing the previous question, kitty
(https://github.com/kovidgoyal/kitty) is the only terminal emulator I've
seen so far that allows continuous resize, and splits the "extra" space
among some of its character cells, resulting in certain cells being 1px
taller or wider than others. Would this be the reason / use case for
denoting the entire terminal emulator's dimensions? Wouldn't it cause
problems that it's unknown how those extra pixels are distributed?

- What about headless terminal emulators, such as the libvterm library
(https://launchpad.net/libvterm), or screen or tmux in detached mode?

- What about terminal emulators that can have multiple views, potentially
at different pixel sizes? E.g. konsole allows to 

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                          
2017-06-19 17:33 shware_systems Note Edited: 0003786                         
2017-06-19 18:06 EdSchouten     Note Added: 0003787                          
2017-06-19 18:11 shware_systems Note Added: 0003788                          
2017-06-19 18:43 Clausecker     Note Added: 0003789                          
2017-06-20 09:22 geoffclare     Note Added: 0003791                          
2017-06-22 10:36 shware_systems Note Added: 0003797                          
2017-06-22 15:04 geoffclare     Relationship added       related to 0001053  
2017-06-22 15:46 shware_systems Note Edited: 0003786                         
2017-06-22 16:45 geoffclare     Note Added: 0003798                          
2017-06-22 16:52 Don Cragun     Note Added: 0003799                          
2017-06-22 20:53 Clausecker     Note Added: 0003800                          
2017-06-29 09:12 geoffclare     File Added: sigwinch_example.c                  
 
2017-06-29 09:20 geoffclare     Note Added: 0003804                          
2017-08-17 15:18 shware_systems Note Edited: 0003786                         
2017-08-17 15:24 shware_systems Note Edited: 0003786                         
2017-08-17 16:37 geoffclare     Note Added: 0003818                          
2017-08-31 09:19 Clausecker     File Added: sigwinch-proposal.2.txt             
      
2017-08-31 09:24 Clausecker     Note Added: 0003820                          
2017-09-14 07:41 geoffclare     File Added: sigwinch_example.2.c                
   
2017-09-14 07:42 geoffclare     Note Added: 0003854                          
2017-10-05 16:30 nick           Note Added: 0003856                          
2017-10-05 16:31 nick           Interp Status             => ---             
2017-10-05 16:31 nick           Final Accepted Text       => See
http://austingroupbugs.net/view.php?id=1151#c3856
2017-10-05 16:31 nick           Status                   New => Resolution
Proposed
2017-10-05 16:31 nick           Resolution               Open => Accepted As
Marked
2017-10-05 16:32 nick           Tag Attached: issue8                         
2017-10-05 16:33 nick           Status                   Resolution Proposed =>
Resolved
2017-10-16 19:28 Clausecker     Note Added: 0003857                          
2017-10-16 19:30 Clausecker     Note Added: 0003858                          
2017-10-16 19:30 Clausecker     Status                   Resolved => Under
Review
2017-10-16 19:30 Clausecker     Resolution               Accepted As Marked =>
Reopened
2017-10-17 14:07 geoffclare     Note Added: 0003859                          
2017-10-17 18:59 Clausecker     Note Added: 0003860                          
2017-10-17 18:59 Clausecker     Note Added: 0003861                          
2017-10-17 18:59 Clausecker     Note Deleted: 0003861                        
2017-10-19 15:18 geoffclare     Note Edited: 0003856                         
2017-10-19 15:20 geoffclare     Note Added: 0003862                          
2017-10-19 15:21 geoffclare     Status                   Under Review =>
Resolved
2017-10-19 15:21 geoffclare     Resolution               Reopened => Accepted As
Marked
2017-10-20 20:16 egmont         Note Added: 0003864                          
======================================================================


Reply via email to