From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6622 invoked by alias); 16 Jul 2012 13:22:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30568 Received: (qmail 21865 invoked from network); 16 Jul 2012 13:22:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.171 as permitted sender) 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== MIME-Version: 1.0 Date: Mon, 16 Jul 2012 15:22:35 +0200 Message-ID: Subject: zcurses version of tetris From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 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