home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- Path: sparky!uunet!psinntp!dg-rtp!webo!dg-webo!pds
- From: pds@lemming.webo.dg.com (Paul D. Smith)
- Subject: How to turn off termcap scrolling regions ("cs")
- Sender: usenet@webo.dg.com (Usenet Administration)
- Message-ID: <PDS.92Aug14143506@lemming.webo.dg.com>
- Date: 14 Aug 92 18:35:06 GMT
- Lines: 26
- Organization: NSDD/ONSD, Data General Corp., Westboro, MA
- Lines: 26
-
- I doubt this is a real wizardly question but I asked on
- comp.unix.programmer and got no response, so...
-
- I have a piece of code which uses termcap to set a scrolling region
- (if available, such as in vt100). My problem is I can't find a
- portable way to *turn off* the region again.
-
- Given tgetstr("cs", buf), on my OS tgoto(buf, -1, -1); seems to do the
- trick. However, on another OS I know of -1,-1 doesn't work, but
- tgoto(buf, 0, 0) does: however 0,0 doesn't work on my system :(.
-
- My question is: is there a "standard" way to turn off scrolling
- regions (termcap capability "cs")? Is there even a "more popular"
- way? I *don't* want to use terminfo or curses; just termcap.
-
- Thanks,
- --
-
- paul
- -----
- ------------------------------------------------------------------
- | Paul D. Smith | paul_smith@dg.com |
- | Data General Corp. | pds@lemming.webo.dg.com |
- | Network Systems Development Division | |
- | Open Network Systems Development | "Pretty Damn S..." |
- ------------------------------------------------------------------
-