home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.programmer
- 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
- From: mcastle@cs.umr.edu (Michael R Castle)
- Subject: how does term[cap,lib] work
- Date: Sun, 3 Jan 1993 20:19:13 GMT
- Nntp-Posting-Host: next9.cs.umr.edu
- Organization: University of Missouri - Rolla, Rolla, MO
- Sender: cnews@umr.edu (UMR Usenet News Post)
- Message-ID: <1993Jan3.201913.18477@umr.edu>
- Lines: 36
-
-
- I'm looking at porting several programs to ms-dos using the djgpp
- package (port of gcc to 386+ dos based machines). Someone has written
- a curses package thats makes uses of the standard hardware so everything
- is a direct memory write, rather than printing a series of escape
- sequences. So, I don't exepect any usual problems porting packages that
- uses curses.
-
- However, I'm a little unsure what to expect with programs that use
- termcap/lib. It appears to me that the termcap functions return
- string of escape sequence that would then be printed out rather
- than executing the sequences themselves. Is this a correct
- interpretations? If it it, it looks like I may have a bit more
- to look foward to than I had originally planned. :-/
-
- Along the same lines. How does the SIGWINCH signal get propogated
- along?
-
- Example: I start up an xterm and resize it. Does a program that
- catch it then change it's TERMCAP environment variable to update
- the new change? Also, how does stty figure into all this (does
- stty send a SIGWINCH?) I notice if I do this, some programs,
- like more(1) and vi(1) do the right thing. Are they catching
- the signal, or checking the current tty information constantly?
-
- This last may cause problems because it's so easy under dos for a
- program to change it's own window size and I'm curious as to how
- programs handle this.
-
- thanks for any pointers,
- mrc
- --
- Mike Castle .-=NEXUS=-. Life is like a clock: You can work constantly
- mcastle@cs.umr.edu and be right all the time, or not work at all
- S087891@UMRVMA.UMR.EDU and be right at least twice a day. -- mrc
- We are all of us living in the shadow of Manhattan. -- Watchmen
-