how do I tell the size of a pseudoterm window?

David Lai lai at vedge.UUCP
Thu Dec 1 05:11:43 AEST 1988


2 problems:

1) How is a program able to tell the size of a pseudoterm's window.
   Is there a termcap entry which specifies that the screen can be
   resized? (The termcap man pages dont mention it).  How does a program
   get 'signalled' when a resize occurs (ie. like vi doing a redraw after
   a resize) ?

2) How can the termcap be modified automatically when a 'resize' occurs, when
   not in a program (ie at the shell prompt)?  This would be useful so that
   the next 'ls' or other such commands would output an appropriate number
   of columns.

I am looking for a general case solution which should be able to be
applied to various windowing systems.  Does this involve a special
tty/pty driver?
-- 
	"What is a DJ if he can't scratch?"  - Uncle Jamms Army
The views expressed are those of the author, and not of Visual Edge, nor Usenet.
David Lai (vedge!lai at larry.mcrcim.mcgill.edu || ...watmath!onfcanim!vedge!lai)



More information about the Comp.unix.wizards mailing list