home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / wizards / 3623 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.5 KB  |  38 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!psinntp!dg-rtp!webo!dg-webo!pds
  3. From: pds@lemming.webo.dg.com (Paul D. Smith)
  4. Subject: How to turn off termcap scrolling regions ("cs")
  5. Sender: usenet@webo.dg.com (Usenet Administration)
  6. Message-ID: <PDS.92Aug14143506@lemming.webo.dg.com>
  7. Date: 14 Aug 92 18:35:06 GMT
  8. Lines: 26
  9. Organization: NSDD/ONSD, Data General Corp., Westboro, MA
  10. Lines: 26
  11.  
  12. I doubt this is a real wizardly question but I asked on
  13. comp.unix.programmer and got no response, so...
  14.  
  15. I have a piece of code which uses termcap to set a scrolling region
  16. (if available, such as in vt100).  My problem is I can't find a
  17. portable way to *turn off* the region again.
  18.  
  19. Given tgetstr("cs", buf), on my OS tgoto(buf, -1, -1); seems to do the
  20. trick.  However, on another OS I know of -1,-1 doesn't work, but
  21. tgoto(buf, 0, 0) does: however 0,0 doesn't work on my system :(.
  22.  
  23. My question is: is there a "standard" way to turn off scrolling
  24. regions (termcap capability "cs")?  Is there even a "more popular"
  25. way?  I *don't* want to use terminfo or curses; just termcap.
  26.  
  27. Thanks,
  28. --
  29.  
  30.                                                                 paul
  31. -----
  32.  ------------------------------------------------------------------
  33. | Paul D. Smith                          |    paul_smith@dg.com    |
  34. | Data General Corp.                     | pds@lemming.webo.dg.com |
  35. | Network Systems Development Division   |                         |
  36. | Open Network Systems Development       |   "Pretty Damn S..."    |
  37.  ------------------------------------------------------------------
  38.