Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zcurses version of tetris
- X-seq: zsh-workers 30568
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: zcurses version of tetris
- Date: Mon, 16 Jul 2012 15:22:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=GlNISeH+2NgUZb/IoGkoO5qv5GkLlNmupE8OUOnJ3wg=; b=mQFXb7NV6izq9BULyp28RIhDzOqOQC3LF+1vT47nEDSiGETavk5RvaE2JAYzChlIpB 5rt9hhw2dLcr0eJCaOYK/oNvUCHor5xb4azS0Hr+BNkNKspk3fNPoLjjb5AH1I5LqLA0 htYTAk6iRba9G0gnjuvGToeFgrPEl4CZAEpUrr78xNaoINBT1kc23uQGIGvSi2xC7m8Y NlQ24P2NvDAOWzUilJ93bvxkDDyaXFmK2LlVSakgc+/WhKVH4eTRpfERAmFyDjwl3XHp p00GjBGmxCB375djTTxnr9oUNs/wVnHteGc+R9iM42k/v4kfsUHMbayumhQtCaBYXz1S jkDg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi,
I noticed we don't ship any contrib and/or example scripts using the
zcurses module, and also that the builtin tetris is sort of boring, so
I figured I'd port it to curses. It works pretty well, but I noticed
two problems with the zcurses module in the process:
1. the HAVE_USE_DEFAULT_COLORS define seems to never be defined?
2a. resizing the window causes 'zcurses input' to wait forever for a
key, even with a timeout defined.
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.
Here's the current version if anyone wants to take a look,
http://mika.l3ib.org/code/zsh-functions/tetriscurses
and in case i'm fiddling around with it, the version when I sent this
mail, http://mika.l3ib.org/code/tetriscurses-1
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author