home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / programm / 5812 < prev    next >
Encoding:
Text File  |  1993-01-03  |  2.1 KB  |  48 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcastle
  3. From: mcastle@cs.umr.edu (Michael R Castle)
  4. Subject: how does term[cap,lib] work
  5. Date: Sun, 3 Jan 1993 20:19:13 GMT
  6. Nntp-Posting-Host: next9.cs.umr.edu
  7. Organization: University of Missouri - Rolla, Rolla, MO
  8. Sender: cnews@umr.edu (UMR Usenet News Post)
  9. Message-ID: <1993Jan3.201913.18477@umr.edu>
  10. Lines: 36
  11.  
  12.  
  13. I'm  looking at porting several programs to ms-dos using the djgpp 
  14. package (port of gcc to 386+ dos based machines).  Someone has written
  15. a curses package thats makes uses of the standard hardware so everything
  16. is a direct memory write, rather than printing a series of escape
  17. sequences.  So, I don't exepect any usual problems porting packages that
  18. uses curses.
  19.  
  20. However, I'm a little unsure what to expect with programs that use 
  21. termcap/lib.  It appears to me that the termcap functions return
  22. string of escape sequence that would then be printed out rather
  23. than executing the sequences themselves.  Is this a correct 
  24. interpretations?  If it it, it looks like I may have a bit more
  25. to look foward to than I had originally planned.  :-/
  26.  
  27. Along the same lines.  How does the SIGWINCH signal get propogated
  28. along?  
  29.  
  30. Example:  I start up an xterm and resize it.  Does a program that
  31. catch it then change it's TERMCAP environment variable to update
  32. the new change?  Also, how does stty figure into all this (does 
  33. stty send a SIGWINCH?)  I notice if I do this, some programs,
  34. like more(1) and vi(1) do the right thing.  Are they catching
  35. the signal, or checking the current tty information constantly?
  36.  
  37. This last may cause problems because it's so easy under dos for a 
  38. program to change it's own window size and I'm curious as to how
  39. programs handle this.
  40.  
  41. thanks for any pointers,
  42. mrc
  43. -- 
  44. Mike Castle .-=NEXUS=-.  Life is like a clock:  You can work constantly
  45.   mcastle@cs.umr.edu     and be right all the time, or not work at all
  46. S087891@UMRVMA.UMR.EDU   and be right at least twice a day.  -- mrc
  47.     We are all of us living in the shadow of Manhattan.  -- Watchmen
  48.