Path: utzoo!dciem!nrcaer!xios!greg From: greg@xios.XIOS.UUCP (Greg Franks) Newsgroups: comp.emacs Subject: Re: Using Emacs terminal mode w/SYSV Message-ID: <446@xios.XIOS.UUCP> Date: 14 Jan 88 13:46:08 GMT Article-I.D.: xios.446 Posted: Thu Jan 14 08:46:08 1988 References: <1821609@ncrcpx.UUCP> <126@axcess.UUCP> Reply-To: greg@sdn.UUCP (Greg Franks) Organization: XIOS Systems Corporation, Ottawa, Ontario, Canada Lines: 38 There have been comments about terminfo entries for terminal mode in GNU emacs. Terminal mode sets the enviroment variable TERMCAP each time it is invoked. The number of lines and columns are set based on the window size. This trick doesn't work on Sys V because "termcap" entries are compiled into the terminfo database; TERMCAP is ignored. However, there is an out: the environment variables LINES and COLUMNS override the terminfo values for the TERM in use. So, here is the terminfo entry (courtesy of captoinfo) emacs-virtual, xon, cols#78, lines#22, bel=^P^G, clear=^P\f, cr=^P^A, cub1=^P^B, cud1=\n, cup=^P=%p1%'\s'%+%c%p2%'\s'%+%c, dch=^Pd%p1%'\s'%+%c, dch1=^Pd!, dl=^P^K%p1%'\s'%+%c, dl1=^P^K!, ed=^PC, el=^Pc, ich=^P_%p1%'\s'%+%c, ich1=^P_!, il=^P^O%p1%'\s'%+%c, il1=^P^O!, ind=\n, nel=\n, Tic this definition. Don't change the name "emacs-virtual" unless you also change the name in terminal.el. Change terminal.el so that it emits the appropriate magic to set LINES and COLUMNS (sorry - I haven't gotten to that part of job yet - my lisp is non-existant....). ----- I have noticed that not all programs that use curses will run: they object to missing capabilities. I have not yet determined which capabilities are missing. If anyone has any suggestions (and enhancements to terminal mode), please respond. Thanks -- Greg Franks XIOS Systems Corporation, 1600 Carling Avenue, (613) 725-5411 Ottawa, Ontario, Canada, K1Z 8R8 utzoo!dciem!nrcaer!xios!greg "There's so much to sea in Nova Scotia"