Article View: comp.sys.dec
Article #2995Re: dxterm
From: Calsyn Martin Robert
Date: Thu, 17 Jan 1991 14:37
Date: Thu, 17 Jan 1991 14:37
27 lines
1782 bytes
1782 bytes
In article <21124@netcom.UUCP> fisk@netcom.UUCP (Benjamin Fisk) writes:
>
>While using ULTRIX 4.1, I set the application keypadd on.
>The keypadd gets set off automatically by various applications,
>including "vi".
>Is there some preferred termcap entry that I should use?
>Is this a bug?
I just finished wrestling with this one under ULX 4.1. vi does lots of
nasty stuff and the best way to insure complete reinitialization of the
curses environment is with this sort of constuct:
endwin();
run("/usr/ucb/vi",pathname,NULL);
wrefresh(titlescreen);
...where run() is a vfork-and-exec var-arg function and titlescreen is the
screen I need to refresh after vi mucks things up. The wrefresh call
notices that endwin() has been called and reinitializes the curses
environment including the tty and term setups. Note that I have only
used this with cursesX. I use the same construct for calling emacs and
the paginators 'more' and 'less'.
Martin R. Calsyn martin@iastate.edu
Project Vincent Systems Support gg.mrc@isumvs.bitnet
Iowa State University Computation Center voice: (515) 294-9889
Ames, Iowa 50011 fax: (515) 294-1717
Technical Details
Message-ID:
<1991Jan17.143720.23000@news.iastate.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool2.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!martinReferences:
<21124@netcom.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!spool2.mu.edu!uwm.edu!ux1.cso.uiuc.edu!news.iastate.edu!martin From: martin@iastate.edu (Calsyn Martin Robert) Newsgroups: comp.sys.dec Subject: Re: dxterm Keywords: keypadd vi curses cursesX Message-ID: <1991Jan17.143720.23000@news.iastate.edu> Date: 17 Jan 91 14:37:20 GMT References: <21124@netcom.UUCP> Sender: news@news.iastate.edu (USENET News System) Distribution: na Organization: Iowa State University, Ames, IA Lines: 27