home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!ucsbcsl!mustang.mst6.lanl.gov!data.nas.nasa.gov!taligent!apple!usc!wupost!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!fuug!kiae!briga!ol
- From: ol@jet.riga.lv (Oleg Girko)
- Newsgroups: comp.unix.wizards
- Subject: Re: How to turn off termcap scrolling regions ("cs")
- Message-ID: <1992Aug16.140355.17230@jet.riga.lv>
- Date: 16 Aug 92 14:03:55 GMT
- References: <PDS.92Aug14143506@lemming.webo.dg.com>
- Organization: unknown
- Lines: 19
- X-Newsreader: Tin 1.1 PL4
-
- pds@lemming.webo.dg.com (Paul D. Smith) writes:
-
- | 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 :(.
-
- This seems to work properly:
-
- LINES = tgetnum ("li");
- ...
- tgoto (buf, 0, LINES-1)
-
- Oleg Girko _ ,
- ol@infopro.spb.su / ) /
- ol@jet.riga.lv (_ / (__
-