zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: trapping WINCH fails in 3.0.3-test4
Date: Tue, 29 Apr 1997 09:33:07 +0200	[thread overview]
Message-ID: <199704290733.JAA13263@hydra.ifh.de> (raw)
In-Reply-To: "Roderick Schertler"'s message of "Mon, 28 Apr 1997 20:25:32 MET." <24742.862273532@eeyore.ibcinc.com>

Roderick Schertler wrote:
> I can't get a trap on SIGWINCH to work in 3.0.3-test4:
> 
>     e:1% zsh-3.0.3-test4 -f
>     eeyore% TRAPWINCH() { echo here }
>     eeyore% kill -WINCH $$
>     eeyore% _

I don't see why it shouldn't be made to work; it's probably just an
oversight (except that the whole trap mechanism needs altering to run
the traps somewhere else, but that doesn't alter the present problem).
The proper place for the trap is probably after adjustwinsize(), so
that the function gets the new values for $LINES and $COLUMNS.

*** Src/signals.c.win	Tue Feb 18 17:29:59 1997
--- Src/signals.c	Tue Apr 29 09:26:17 1997
***************
*** 489,494 ****
--- 489,496 ----
  
      case SIGWINCH:
          adjustwinsize();  /* check window size and adjust */
+ 	if (sigtrapped[SIGWINCH])
+ 	    dotrap(SIGWINCH);
          break;
  
      case SIGALRM:

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.


           reply	other threads:[~1997-04-29  7:39 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <24742.862273532@eeyore.ibcinc.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199704290733.JAA13263@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).