Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site ho95b.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!houxm!ho95b!wcs From: wcs@ho95b.UUCP (Bill Stewart) Newsgroups: net.unix-wizards Subject: Re: TERMCAPs extensions... Message-ID: <364@ho95b.UUCP> Date: Fri, 12-Apr-85 16:12:47 EST Article-I.D.: ho95b.364 Posted: Fri Apr 12 16:12:47 1985 Date-Received: Sat, 13-Apr-85 05:42:30 EST References: <9737@brl-tgr.ARPA> Organization: AT&T Bell Labs, Holmdel NJ Lines: 23 Barry Shein at BU asked if there was some way to inform TERMCAP and similar programs about different window sizes, for terminals that support multiple windows, and suggested environment variables as one approach. System V Release 2 and the Teletype 5620 terminal provide some support for this. (The 5620 is the production equivalent of the BLIT bitmapped graphics terminal.) The TERMINFO version of curses recognizes the variables LINES and COLUMNS as the dimensions of the window, and can optionally be compiled to try using the 5620/blit ioctl to check window size. This means that any programs using libcurses.a can know how big windows are (if they bother to ask curses instead of wiring in 24x80), and for programs that don't need curses but just want a screen width (e.g. ls -C), the variables are available. Some of the terminal emulation programs that run on the 5620 will automatically set and export the LINES and COLUMNS variables whenever the window size changes; "emacsterm" exports these, plus TERMCAP, TERM, and TERMINFO so that anything screen-oriented gets the right information. This approach is useful in a remote execution environment, where the program can't always DO an ioctl to the real device, especially if you can pass environment variables. Bill Stewart, ihnp4!ho95c!wcs at AT&T Bell Labs.