🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.sources.d
Article #1714

Re: Suspend problem with vile.

#1714
From: Jaap Vermeulen
Date: Tue, 25 Jun 1991 21:04
85 lines
3410 bytes
In <1991Jun25.001812.12575@ariel.unm.edu> jharper@triton.unm.edu (TL) writes:

>Now, for my question. It appears, that the vile editor (unless I compiled
>the wrong settings) has a problem with suspend. Whenever I leave the 
>editor typing ctrl-Z, my terminal locks up. Anyone encounter this problem?

vile does not reset it's terminal settings when suspended.
Annoying (although with tcsh not a real problem since it sets the
terminal to a sane state) and I'm sure it can be fixed easily (I
added a NON_OFFICIAL patch).

I like this editor overall pretty well (die hard vi users will
never use emacs :-), although I miss the powerful regular
expression vi offered (including capturing part of the search
pattern in the replacement pattern) and the inability to define
powerful macros (yet). Another small nuisance is that the return
key does not always work the way it used to in vi; you need to
hit the spacebar first and then the return key.

Overall a thumbs up!

Here is the diff for the suspend problem:

*** spawn.c	Tue Jun 18 16:52:02 1991
--- next/spawn.c	Tue Jun 25 10:59:48 1991
***************
*** 145,151
  	curwp->w_flag = WFHARD;  /* is this needed, with sgarbf == TRUE? */
  	sgarbf = TRUE;
  #if USG
! 	signal(SIGCONT,rtfrmshell);	/* suspend & restart */
  	update(TRUE);
  #endif
  #endif

--- 145,152 -----
  	curwp->w_flag = WFHARD;  /* is this needed, with sgarbf == TRUE? */
  	sgarbf = TRUE;
  #if USG
! 	signal(SIGTSTP,bktoshell);	/* suspend */
! 	signal(SIGCONT,rtfrmshell);	/* restart */
  	update(TRUE);
  #endif
  #endif
*** termio.c	Tue Jun 18 16:52:22 1991
--- next/termio.c	Tue Jun 25 10:51:03 1991
***************
*** 241,246
  
  #if UNIX && defined(SIGTSTP)
  	{
  	extern	int rtfrmshell();	/* return from suspended shell */
  	signal(SIGTSTP,SIG_DFL);	/* set signals so that we can */
  	signal(SIGCONT,rtfrmshell);	/* suspend & restart */

--- 241,247 -----
  
  #if UNIX && defined(SIGTSTP)
  	{
+ 	extern	int bktoshell();	/* return back to shell */
  	extern	int rtfrmshell();	/* return from suspended shell */
  	signal(SIGTSTP,bktoshell);	/* suspend */
  	signal(SIGCONT,rtfrmshell);	/* restart */
***************
*** 242,249
  #if UNIX && defined(SIGTSTP)
  	{
  	extern	int rtfrmshell();	/* return from suspended shell */
! 	signal(SIGTSTP,SIG_DFL);	/* set signals so that we can */
! 	signal(SIGCONT,rtfrmshell);	/* suspend & restart */
  	signal(SIGTTOU,SIG_IGN);	/* ignore output prevention */
  	}
  #endif

--- 243,250 -----
  	{
  	extern	int bktoshell();	/* return back to shell */
  	extern	int rtfrmshell();	/* return from suspended shell */
! 	signal(SIGTSTP,bktoshell);	/* suspend */
! 	signal(SIGCONT,rtfrmshell);	/* restart */
  	signal(SIGTTOU,SIG_IGN);	/* ignore output prevention */
  	}
  #endif

	-Jaap-
Technical Details
Message-ID: <1991Jun25.210436.18428@sequent.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!sequent!muncher.sequent.com!news
References: <1991Jun25.001812.12575@ariel.unm.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!sequent!muncher.sequent.com!news
From: jaap@sequent.com (Jaap Vermeulen)
Newsgroups: alt.sources.d
Subject: Re: Suspend problem with vile.
Message-ID: <1991Jun25.210436.18428@sequent.com>
Date: 25 Jun 91 21:04:36 GMT
References: <1991Jun25.001812.12575@ariel.unm.edu>
Sender: news@sequent.com (News on Muncher)
Organization: Sequent Computer Sytems, Windows Group, Beaverton, Oregon
Lines: 85
X-Phone: (503) 578-4404
X-Internet: jaap@sequent.com
X-Uucp: uunet!sequent!jaap