zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: zcurses version of tetris
Date: Mon, 16 Jul 2012 13:21:51 -0700	[thread overview]
Message-ID: <120716132151.ZM3654@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3R8=wu+KBEA5bd=qMKbP5e2zCm=8wNTcpdn4nNW+qJ=vg@mail.gmail.com>

On Jul 16,  3:22pm, Mikael Magnusson wrote:
}
} 2a. resizing the window causes 'zcurses input' to wait forever for a
} key, even with a timeout defined.

This probably has something to do with the special-casing around wgetch()
for signals handled by the "trap" command.  See the big comment in
Src/Modules/curses.c lines 1073-1103.

It may be problematic to mix curses with the generic signal handling in
the main shell.  We may need to swap in a SIGWINCH handler wrapper while
the curses UI is active, and restore the main handler when leaving it.

} 2b. resizing the window doesn't cause an event while running the
} program, but if i resize before starting(?) i get an event RESIZE on
} my first input call.

There's probably some state that needs to be cleared on entry to
zccmd_input() so that curses doesn't see something left over from the
previous signal.  Unfortunately I don't know what that would be.


      reply	other threads:[~2012-07-16 20:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-16 13:22 Mikael Magnusson
2012-07-16 20:21 ` Bart Schaefer [this message]

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=120716132151.ZM3654@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /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).