home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v7 / text0063.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.4 KB

  1. From: bobr%zeus.tek.csnet@RELAY.CS.NET (Robert Reed)
  2. Organization: CAE Systems Division, Tektronix Inc., Beaverton OR
  3. Date: 15 Oct 86 12:23:31 PDT (Wed)
  4.  
  5. > From: shannon@sun.com (Bill Shannon) 
  6. > I don't believe there should be an ioctl to find out the pixel size of a
  7. > "window". ...  The pixel size is of no use to programs that deal only in
  8. > characters.  Only programs manipulating windows will need to know the pixel
  9. > size.  ...  The tty subsystem, which deals only in characters, should not
  10. > know anything about pixels or windows.
  11.  
  12. Naive programs should have access to window size as character information,
  13. but there are programs which do not manipulate windows which need window
  14. size information in pixels.  My solution would be to provide the size in
  15. character units but also provide character cell size in pixels with the same
  16. call (ioctl or whatever).  Programs could use it or ignore it.
  17.  
  18. Whether the tty system does know about pixels or not, it should.  If the
  19. window size information (in character units) is going to be accurate, window
  20. sizes must be restricted to integrals of character size.  With straight ttys
  21. this is no problem, but if the system supports font changing, character size
  22. can vary.  Rather than require one call to find the window size and then
  23. another call to find out what the units are, this information should be
  24. consolidated into a single place.
  25.  
  26. Volume-Number: Volume 7, Number 64
  27.  
  28.